-
Notifications
You must be signed in to change notification settings - Fork 224
Closed
Labels
enhanced-constRequests or proposals about enhanced constant expressionsRequests or proposals about enhanced constant expressionsfeatureProposed language feature that solves one or more problemsProposed language feature that solves one or more problems
Milestone
Description
This is the feature proposal for request #54. It improved the support for constant expressions, for example the ability to explicitly cast a value in a const expression:
class MyClass {
final String value;
const MyClass(Object o) : value = (o is! String) ? "$o" : (o as String);
}
The feature specification is:
https://github.com/dart-lang/language/blob/master/accepted/2.5/constant-update-2018/feature-specification.md
Metadata
Metadata
Assignees
Labels
enhanced-constRequests or proposals about enhanced constant expressionsRequests or proposals about enhanced constant expressionsfeatureProposed language feature that solves one or more problemsProposed language feature that solves one or more problems
Type
Projects
Status
Done