Skip to content

Commit e4cc8f8

Browse files
authored
Fixes #2090. Add required final instance variable to a inline class (#2091)
1 parent fd0c7c2 commit e4cc8f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

LanguageFeatures/Inline-classes/composing_inline_classes_A05_t05.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/// the two declarations of m are distinct declarations, and DV does not declare
1212
/// a member named m.
1313
///
14-
/// @description Checks that it is no an error if an inline class declaration
14+
/// @description Checks that it is not an error if an inline class declaration
1515
/// `DV` has two superinterfaces `V1` and `V2`, where both `V1` and `V2` have
1616
/// the same declaration named `m`
1717
/// @author [email protected]
@@ -31,6 +31,7 @@ inline class V2 implements V3 {
3131
}
3232

3333
inline class V3 {
34+
final int id = 0;
3435
num foo() => 42;
3536
}
3637

0 commit comments

Comments
 (0)