| Index: tests/compiler/dart2js/serialization/test_data.dart
|
| diff --git a/tests/compiler/dart2js/serialization/test_data.dart b/tests/compiler/dart2js/serialization/test_data.dart
|
| index 562b21d7cf1f3cd0ee213eac2d545aeb7eaf7e6e..44420f3935978ad36ce6785533922c1e5b6b75d9 100644
|
| --- a/tests/compiler/dart2js/serialization/test_data.dart
|
| +++ b/tests/compiler/dart2js/serialization/test_data.dart
|
| @@ -416,6 +416,27 @@ main() {
|
| Unresolved m() {}
|
| ''',
|
| }),
|
| +
|
| + const Test('Function types for closures', const {
|
| + 'main.dart': '''
|
| +import 'a.dart';
|
| +
|
| +typedef Func();
|
| +
|
| +main(args) {
|
| + (args.isEmpty ? new B() : new C()) is Func;
|
| +}
|
| +''',
|
| + }, preserializedSourceFiles: const {
|
| + 'a.dart': '''
|
| +class B {
|
| + call(a) {}
|
| +}
|
| +class C {
|
| + call() {}
|
| +}
|
| +''',
|
| + }),
|
| ];
|
|
|
| class Test {
|
|
|