Lasse Nielsen (@lrhn)
Status: Experimental
(See: http://github.com/dart-lang/sdk/issues/24841, http://github.com/dart-lang/sdk/issues/27141)
In some cases, you want to validate your inputs before creating an instance, even in a const constructor. To allow that, we plan to test the possibility of allowing assert statements in the initializer list of a generative constructor.
We will start by implementing it in the VM behind a flag, with at least syntax support from the analyzer and possibly the formatter.