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 d1efea3 commit fed9861Copy full SHA for fed9861
Language/Classes/Constructors/Constant_Constructors/initializer_not_a_constant_t03.dart
@@ -5,6 +5,7 @@
5
/// @assertion It is a compile-time error if a constant constructor is declared
6
/// by a class C if any instance variable declared in C is initialized with an
7
/// expression that is not a constant expression
8
+///
9
/// @description Checks that compile error is produced if class declares a
10
/// constant constructor and has instance variable which is initialised by static
11
/// non-constant expression.
@@ -24,6 +25,4 @@ class C {
24
25
26
main() {
27
const C();
-// ^
28
-// [cfe] unspecified
29
}
0 commit comments