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 has come up a few times in the past - @floitschG has a lot of additional context, @rakudrama had a proposal on how to fix this in dart2js.
See these older issues describing the underlying problem: #17123 #17207 #21553
Note in particular discussions about canonicalization of generic types, and ideas about treating raw vs generic types differently in the dart2js implementation.
This code:
Is accepted by the analyzer, and runs on the VM and DDC with no errors. Dart2js rejects it with the following error:
Is this valid code and dart2js is buggy here, or is this invalid code that should be rejected statically or dynamically?
cc @sigmundch @lrhn @munificent
The text was updated successfully, but these errors were encountered: