dec268cfae
This makes us report the following error * in JIT: Unhandled exception: 'test.dart': error: Type arguments must be instantiated in partial instantiation. #0 main (...) ... * in AOT: test.dart:7:28: Error: The type '#lib1::C::T' is not a constant, only instantiated types are ... const C({this.callback = _defaultCallback}); ^ test.dart:7:17: Context: While analyzing: const C({this.callback = _defaultCallback}); ^ test.dart:5:37: Error: The type '#lib1::C::T' is not a constant, only instantiated types are ... void foo([dynamic Function(T) f = _defaultCallback]) {} ^ test.dart:5:33: Context: While analyzing: void foo([dynamic Function(T) f = _defaultCallback]) {} ^ test.dart:11:38: Error: The type '#lib1::bar::T' is not a constant, only instantiated types are ... void bar<T>([dynamic Function(T) f = _defaultCallback]) {} ^ test.dart:11:34: Context: While analyzing: void bar<T>([dynamic Function(T) f = _defaultCallback]) {} Issue https://github.com/dart-lang/sdk/issues/32912 Change-Id: I05c7019119a50a9cc38939d9cb41aeaa06c853bc Reviewed-on: https://dart-review.googlesource.com/c/81278 Auto-Submit: Martin Kustermann <kustermann@google.com> Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Kevin Millikin <kmillikin@google.com>