We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8f837d commit b1b6108Copy full SHA for b1b6108
LanguageFeatures/Static-access-shorthand/constant_expression_A10_t17.dart
@@ -45,9 +45,15 @@ main() {
45
// ^
46
// [analyzer] unspecified
47
// [cfe] unspecified
48
- const M m = 2 < 1 ? .one : .two; //`false ? variable : const` is a constant
+ const M m = 2 < 1 ? .one : .two;
49
+// ^
50
+// [analyzer] unspecified
51
+// [cfe] unspecified
52
- const E e = 2 > 1 ? .one : .two; // `true ? const : variable` is a constant
53
+ const E e = 2 > 1 ? .one : .two;
54
55
56
57
58
const ET et = 2 < 1 ? .one : .two;
59
0 commit comments