| library /*isNonNullableByDefault*/; |
| // |
| // Problems in library: |
| // |
| // pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. |
| // Try using List.filled instead. |
| // new List<T>(42); |
| // ^ |
| // |
| // pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. |
| // Try using List.filled instead. |
| // new List<int?>(42); |
| // ^ |
| // |
| // pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. |
| // Try using List.filled instead. |
| // new List<int>(42); |
| // ^ |
| // |
| import self as self; |
| import "dart:core" as core; |
| |
| static method foo<T extends core::Object?>() → dynamic { |
| let final Never #t1 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:9:7: Error: Can't use the default List constructor. |
| Try using List.filled instead. |
| new List<T>(42); |
| ^" in core::List::•<self::foo::T%>(42); |
| let final Never #t2 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:10:7: Error: Can't use the default List constructor. |
| Try using List.filled instead. |
| new List<int?>(42); |
| ^" in core::List::•<core::int?>(42); |
| let final Never #t3 = invalid-expression "pkg/front_end/testcases/nnbd/list_constructor.dart:11:7: Error: Can't use the default List constructor. |
| Try using List.filled instead. |
| new List<int>(42); |
| ^" in core::List::•<core::int>(42); |
| } |
| static method main() → dynamic {} |