| OLD | NEW | 
|   1 // Copyright (c) 2014, the Dart project authors.  Please see the AUTHORS file |   1 // Copyright (c) 2014, 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 'package:expect/expect.dart'; |   5 import 'package:expect/expect.dart'; | 
|   6 import "package:async_helper/async_helper.dart"; |   6 import "package:async_helper/async_helper.dart"; | 
|   7  |   7  | 
|   8 import 'compiler_helper.dart'; |   8 import 'compiler_helper.dart'; | 
|   9 import 'type_mask_test_helper.dart'; |   9 import 'type_mask_test_helper.dart'; | 
|  10  |  10  | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  23  |  23  | 
|  24 main() { |  24 main() { | 
|  25   var a = new A(); |  25   var a = new A(); | 
|  26   a.map['fun'](3.3); |  26   a.map['fun'](3.3); | 
|  27   print(closure(22)); |  27   print(closure(22)); | 
|  28 } |  28 } | 
|  29 '''; |  29 '''; | 
|  30  |  30  | 
|  31 void main() { |  31 void main() { | 
|  32   Uri uri = new Uri(scheme: 'source'); |  32   Uri uri = new Uri(scheme: 'source'); | 
|  33   var compiler = compilerFor(TEST, uri, |  33   var compiler = compilerFor(TEST, uri, expectedErrors: 0, expectedWarnings: 0); | 
|  34       expectedErrors: 0, expectedWarnings: 0); |  | 
|  35   compiler.stopAfterTypeInference = true; |  34   compiler.stopAfterTypeInference = true; | 
|  36   asyncTest(() => compiler.run(uri).then((_) { |  35   asyncTest(() => compiler.run(uri).then((_) { | 
|  37     var commonMasks = compiler.commonMasks; |  36         var commonMasks = compiler.commonMasks; | 
|  38     var typesInferrer = compiler.globalInference.typesInferrer; |  37         var typesInferrer = compiler.globalInference.typesInferrer; | 
|  39     var element = findElement(compiler, 'closure'); |  38         var element = findElement(compiler, 'closure'); | 
|  40     var mask = typesInferrer.getReturnTypeOfElement(element); |  39         var mask = typesInferrer.getReturnTypeOfElement(element); | 
|  41     Expect.equals(commonMasks.numType, simplify(mask, compiler)); |  40         Expect.equals(commonMasks.numType, simplify(mask, compiler)); | 
|  42   })); |  41       })); | 
|  43 } |  42 } | 
| OLD | NEW |