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
{{ message }}
Repository navigation
Static variable declaration of the form "static var v = X" prevents further assigments to v if the value's type is not assignable to X's type #627
What is the expected output? What do you see instead?
Spec says (Ch. 7.7):
A non-final static variable declaration of the form static T v; or the form static T v = e; always induces an implicit static setter function (7.3) with signature
static void set v(T x)
whose execution sets the value of v to the incoming argument x.
Doesn't say the setter's argument type is fixed to the runtime type of e, Dynamic is implied and a value of any type should be possible to use.
What version of the product are you using? On what operating system?
latest Dart version, ubuntu 2.6.32-35-generic
Activity
floitschG commentedon Nov 29, 2011
Added Area-Compiler, Triaged labels.
DartBot commentedon Mar 28, 2012
This comment was originally written by zundel@google.com
Just ran this test again, this is a problem with static analysis, not code generation.
kasperl commentedon Apr 17, 2012
Removed Area-Compiler label.
Added Area-Analyzer label.
danrubel commentedon Jun 4, 2012
Added this to the M1 milestone.
DartBot commentedon Jun 6, 2012
This comment was originally written by zundel@google.com
Just ran the above test again and there are no errors output.
Added CannotReproduce label.
DartBot commentedon Jun 7, 2012
This comment was originally written by rodion...@unipro.ru
Just checked with a recent build of dartc and there was no error as well.
Looks like it's been fixed at some point
fixes #627, update DDC Future.then signature
Update spec_parser.