OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import "package:expect/expect.dart"; | 6 import "package:expect/expect.dart"; |
7 import "package:async_helper/async_helper.dart"; | 7 import "package:async_helper/async_helper.dart"; |
8 import 'package:compiler/src/types/types.dart'; | 8 import 'package:compiler/src/types/types.dart'; |
9 import 'package:compiler/src/inferrer/concrete_types_inferrer.dart'; | 9 import 'package:compiler/src/inferrer/concrete_types_inferrer.dart'; |
10 import 'package:compiler/src/universe/universe.dart' show Selector; | 10 import 'package:compiler/src/universe/universe.dart' show Selector; |
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1447 result.checkNodeHasUnknownType('b'); | 1447 result.checkNodeHasUnknownType('b'); |
1448 final expectedCType = [result.growableList]; | 1448 final expectedCType = [result.growableList]; |
1449 result.checkNodeHasType('c', expectedCType); | 1449 result.checkNodeHasType('c', expectedCType); |
1450 result.checkNodeHasType('cNull', maybe(expectedCType)); | 1450 result.checkNodeHasType('cNull', maybe(expectedCType)); |
1451 final expectedDType = [result.string]; | 1451 final expectedDType = [result.string]; |
1452 result.checkNodeHasType('d', expectedDType); | 1452 result.checkNodeHasType('d', expectedDType); |
1453 result.checkNodeHasType('dNull', maybe(expectedDType)); | 1453 result.checkNodeHasType('dNull', maybe(expectedDType)); |
1454 final expectedEType = [result.int]; | 1454 final expectedEType = [result.int]; |
1455 result.checkNodeHasType('e', expectedEType); | 1455 result.checkNodeHasType('e', expectedEType); |
1456 result.checkNodeHasType('eNull', maybe(expectedEType)); | 1456 result.checkNodeHasType('eNull', maybe(expectedEType)); |
1457 final expectedFType = [result.double]; | 1457 final expectedFType = [result.num]; |
1458 result.checkNodeHasType('f', expectedFType); | 1458 result.checkNodeHasType('f', expectedFType); |
1459 result.checkNodeHasType('fNull', maybe(expectedFType)); | 1459 result.checkNodeHasType('fNull', maybe(expectedFType)); |
1460 final expectedGType = [result.num]; | 1460 final expectedGType = [result.num]; |
1461 result.checkNodeHasType('g', expectedGType); | 1461 result.checkNodeHasType('g', expectedGType); |
1462 result.checkNodeHasType('gNull', maybe(expectedGType)); | 1462 result.checkNodeHasType('gNull', maybe(expectedGType)); |
1463 final expectedType = [result.bool]; | 1463 final expectedType = [result.bool]; |
1464 result.checkNodeHasType('h', expectedType); | 1464 result.checkNodeHasType('h', expectedType); |
1465 result.checkNodeHasType('hNull', maybe(expectedType)); | 1465 result.checkNodeHasType('hNull', maybe(expectedType)); |
1466 final expectedIType = [result.base('B'), | 1466 final expectedIType = [result.base('B'), |
1467 result.base('BB'), | 1467 result.base('BB'), |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2145 testClosures10, | 2145 testClosures10, |
2146 testClosures11, | 2146 testClosures11, |
2147 testClosures12, | 2147 testClosures12, |
2148 testRefinement, | 2148 testRefinement, |
2149 testDefaultArguments, | 2149 testDefaultArguments, |
2150 testSuperConstructorCall, | 2150 testSuperConstructorCall, |
2151 testSuperConstructorCall2, | 2151 testSuperConstructorCall2, |
2152 testSuperConstructorCall3, | 2152 testSuperConstructorCall3, |
2153 ], (f) => f())); | 2153 ], (f) => f())); |
2154 } | 2154 } |
OLD | NEW |