You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Wasm backend: close several Dart → WebAssembly gaps
Unqualified sibling class-method calls now resolve: a method can call a
sibling static method by bare name (dbl(x) instead of Foo.dbl(x)),
including with named arguments and omitted default parameters.
String + <number> concatenation (from Java/Kotlin/C#/JS/TS, e.g. "n=" + n) compiles, coercing the numeric operand to a String.
switch on a String scrutinee (content equality) and switch on an enum scrutinee (compared by ordinal). switch on int already worked.
Also fixes a general function-end edge case: a control construct
(switch/if/while) that returns on all paths as the last statement (e.g.
after a var declaration) compiled to a function that fell off its end
without a return value.
Rich-enum methods that take an enum-typed parameter (double ratio(Planet p)) compile; C#/TypeScript explicit-value enums expose .value.
Typed catch-all clauses (on Exception catch (e) / catch (Exception e)) compile instead of failing on the declared exception type.
Known remaining gaps (documented, with skipped reproduction tests): Map/ List → String coercion, generic (Box<T>) primitive fields, lambdas, and switch on a boxed dynamic/Object scrutinee.