OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // Dart test program for constructors and initializers. | 4 // Dart test program for constructors and initializers. |
5 | 5 |
6 // Check function subtyping for local functions. | 6 // Check function subtyping for local functions. |
7 | 7 |
8 import 'package:expect/expect.dart'; | 8 import 'package:expect/expect.dart'; |
9 | 9 |
10 typedef int Foo(bool a, [String b]); | 10 typedef int Foo(bool a, [String b]); |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 Expect.isFalse(baz is Foo, 'baz is Foo'); | 25 Expect.isFalse(baz is Foo, 'baz is Foo'); |
26 Expect.isFalse(baz is Bar, 'baz is Bar'); | 26 Expect.isFalse(baz is Bar, 'baz is Bar'); |
27 Expect.isTrue(baz is Baz, 'baz is Baz'); | 27 Expect.isTrue(baz is Baz, 'baz is Baz'); |
28 Expect.isTrue(baz is Boz, 'baz is Boz'); | 28 Expect.isTrue(baz is Boz, 'baz is Boz'); |
29 | 29 |
30 Expect.isFalse(boz is Foo, 'boz is Foo'); | 30 Expect.isFalse(boz is Foo, 'boz is Foo'); |
31 Expect.isFalse(boz is Bar, 'boz is Bar'); | 31 Expect.isFalse(boz is Bar, 'boz is Bar'); |
32 Expect.isFalse(boz is Baz, 'boz is Baz'); | 32 Expect.isFalse(boz is Baz, 'boz is Baz'); |
33 Expect.isTrue(boz is Boz, 'boz is Boz'); | 33 Expect.isTrue(boz is Boz, 'boz is Boz'); |
34 } | 34 } |
OLD | NEW |