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 6ff5ec3 commit 1cc496dCopy full SHA for 1cc496d
LanguageFeatures/Static-access-shorthand/constant_expression_A10_t17.dart
@@ -45,14 +45,10 @@ main() {
45
// ^
46
// [analyzer] unspecified
47
// [cfe] unspecified
48
- const M m = 2 < 1 ? .one : .two;
49
-// ^
50
-// [analyzer] unspecified
51
-// [cfe] unspecified
52
- const E e = 2 > 1 ? .one : .two;
53
54
55
+ const M m = 2 < 1 ? .one : .two; //`false ? variable : const` is a constant
+
+ const E e = 2 > 1 ? .one : .two; // `true ? const : variable` is a constant
56
const ET et = 2 < 1 ? .one : .two;
57
58
0 commit comments