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
classA {
var x = () =>throw'Hi';
var y = () =>null;
}
Nullf() =>null;
main() {
A a =newA();
print(a.x.runtimeType);
print(a.y.runtimeType);
a.y = a.x;
// a.x = f; Static error in CFE, ok in analyzer
a.x = (f asdynamic);
print(a.x.runtimeType);
print(a.y.runtimeType);
}
Here are a couple examples:
On VM and Dart2JS, this prints:
On DDC and DDK, this prints:
For this example:
On VM, Dart2JS, and DDC:
On DDK:
The simplest answer is to always reify as
Null
regardless of what the CFE or Analyzer passes in. If so, we can change DDC / DDK accordingly.The text was updated successfully, but these errors were encountered: