Add "ensure" and "invariant" checking for contract based assertions and static analysis #15390
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-duplicate
Closed in favor of an existing report
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by [email protected]
I am a big fan of the Code Contracts (http://msdn.microsoft.com/en-us/library/dd264808(v=vs.110).aspx) functionality that Microsoft have added to .NET and would love to see something similar in Dart.
I would guess a first step would be to in addition to "assert" also add "ensure" and "invariant" test in runtime and later on also allow it to help static analysis.
The text was updated successfully, but these errors were encountered: