You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/lib/isolate/deeply_immutable_no_ffi_test.dart
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,8 +13,8 @@ import 'dart:isolate';
13
13
finalclassFoo {
14
14
dynamic myMutableField;
15
15
// ^
16
-
// [cfe] Deeply immutable classes must only have final non-late instance fields.
17
16
// [cfe] Deeply immutable classes must only have deeply immutable instance fields. Deeply immutable types include 'int', 'double', 'bool', 'String', 'Pointer', 'Float32x4', 'Float64x2', 'Int32x4', and classes annotated with `@pragma('vm:deeply-immutable')`.
17
+
// [cfe] Deeply immutable classes must only have final non-late instance fields.
// [cfe] Subtypes of deeply immutable classes must be deeply immutable.
186
+
// ^
187
+
// [cfe] Subtypes of deeply immutable classes must be deeply immutable.
208
188
}
209
189
210
190
@pragma('vm:deeply-immutable')
@@ -217,13 +197,14 @@ final class Class14<T extends DeeplyImmutableInterface> {
217
197
@pragma('vm:deeply-immutable')
218
198
finalclassClass15<TextendsNotDeeplyImmutable> {
219
199
finalT notDeeplyImmutable;
220
-
// ^^^^^^^^^^^^^^^^^^
200
+
// ^
221
201
// [cfe] Deeply immutable classes must only have deeply immutable instance fields. Deeply immutable types include 'int', 'double', 'bool', 'String', 'Pointer', 'Float32x4', 'Float64x2', 'Int32x4', and classes annotated with `@pragma('vm:deeply-immutable')`.
222
202
223
203
Class15({requiredthis.notDeeplyImmutable});
224
204
}
225
205
226
206
@pragma('vm:deeply-immutable')
227
207
abstractmixinclassClass17 {}
228
-
// ^^^^^^^
208
+
// ^
229
209
// [cfe] Deeply immutable classes must be final or sealed.
0 commit comments