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
I don't know actually. I haven't been driving this change and the main issue isn't clear. If it were up to me, I would still allow : in libraries whose language version is <3.0. @bwilkerson, how does the analyzer handle this? @lrhn or @mit-mit, do you have a preference?
In code prior to 3.0 analyzer issues a warning that the syntax is going away. In 3.0 and later it issues an error saying that it's no longer allowed. Specifically, the 3.0 messages (problem and correction) read:
Using a colon as a separator before a default value is no longer supported.
Confirming what @lrhn says, we discussed this in the language meeting today and agreed it should be a versioned change. It's an error to use : as a default value separator in a 3.0 library. It is not an error to use : as a default value separator in a <3.0 library.
For Dart 3.0, we are removing support for the long-deprecated ancient
:
default separator syntax:Analyzer has already implemented this and reports an error on the above code. The CFE should too.
The text was updated successfully, but these errors were encountered: