mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Remove an error that is caught at compile time in Dart 2 (#15797)
This commit is contained in:
parent
217b2bdaa1
commit
339e65d839
@ -23,7 +23,6 @@ void main() {
|
||||
fontWeight: FontWeight.w800,
|
||||
height: 123.0,
|
||||
);
|
||||
expect(() { s1.fontFamily = 'test'; }, throwsA(const isInstanceOf<Error>())); // ignore: ASSIGNMENT_TO_FINAL
|
||||
expect(s1.fontFamily, isNull);
|
||||
expect(s1.fontSize, 10.0);
|
||||
expect(s1.fontWeight, FontWeight.w800);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user