Skip to content

Commit fed9861

Browse files
authored
Fixes #3136. Update expected errors location in initializer_not_a_constant_t03.dart (#3138)
Update expected errors location in initializer_not_a_constant_t03.dart
1 parent d1efea3 commit fed9861

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Language/Classes/Constructors/Constant_Constructors/initializer_not_a_constant_t03.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
/// @assertion It is a compile-time error if a constant constructor is declared
66
/// by a class C if any instance variable declared in C is initialized with an
77
/// expression that is not a constant expression
8+
///
89
/// @description Checks that compile error is produced if class declares a
910
/// constant constructor and has instance variable which is initialised by static
1011
/// non-constant expression.
@@ -24,6 +25,4 @@ class C {
2425

2526
main() {
2627
const C();
27-
// ^
28-
// [cfe] unspecified
2928
}

0 commit comments

Comments
 (0)