From 5856410744002f897ae566657ebbba6b96298b6d Mon Sep 17 00:00:00 2001 From: sgrekhov Date: Wed, 21 Jun 2023 10:07:41 +0300 Subject: [PATCH] Fixes #2090. Add required final instance variable to a inline class --- .../Inline-classes/composing_inline_classes_A05_t05.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LanguageFeatures/Inline-classes/composing_inline_classes_A05_t05.dart b/LanguageFeatures/Inline-classes/composing_inline_classes_A05_t05.dart index 8d2e28b2e9..389967433b 100644 --- a/LanguageFeatures/Inline-classes/composing_inline_classes_A05_t05.dart +++ b/LanguageFeatures/Inline-classes/composing_inline_classes_A05_t05.dart @@ -11,7 +11,7 @@ /// the two declarations of m are distinct declarations, and DV does not declare /// a member named m. /// -/// @description Checks that it is no an error if an inline class declaration +/// @description Checks that it is not an error if an inline class declaration /// `DV` has two superinterfaces `V1` and `V2`, where both `V1` and `V2` have /// the same declaration named `m` /// @author sgrekhov22@gmail.com @@ -31,6 +31,7 @@ inline class V2 implements V3 { } inline class V3 { + final int id = 0; num foo() => 42; }