OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 | 4 |
5 // Test code | 5 // Test code |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
9 import 'package:ddc/runtime/dart_runtime.dart'; | 9 import 'package:dev_compiler/runtime/dart_runtime.dart'; |
10 | 10 |
11 class A { | 11 class A { |
12 int x; | 12 int x; |
13 } | 13 } |
14 | 14 |
15 class B extends A { | 15 class B extends A { |
16 int y; | 16 int y; |
17 } | 17 } |
18 | 18 |
19 class C extends B { | 19 class C extends B { |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 test('arity', () { | 258 test('arity', () { |
259 checkArity(bar1, 2, 2); | 259 checkArity(bar1, 2, 2); |
260 checkArity(bar4, 2, 2); | 260 checkArity(bar4, 2, 2); |
261 checkArity(bar6, 3, 3); | 261 checkArity(bar6, 3, 3); |
262 checkArity(bar7, 2, 3); | 262 checkArity(bar7, 2, 3); |
263 checkArity(bar8, 2, 2); | 263 checkArity(bar8, 2, 2); |
264 checkArity(() {}, 0, 0); | 264 checkArity(() {}, 0, 0); |
265 checkArity((a, [b]) {}, 1, 2); | 265 checkArity((a, [b]) {}, 1, 2); |
266 }); | 266 }); |
267 } | 267 } |
OLD | NEW |