| 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 | 4 |
| 5 import 'package:expect/expect.dart'; |
| 5 import 'compiler_helper.dart'; | 6 import 'compiler_helper.dart'; |
| 6 import 'parser_helper.dart'; | 7 import 'parser_helper.dart'; |
| 7 | 8 |
| 8 const String TEST = """ | 9 const String TEST = """ |
| 9 | 10 |
| 10 class A { | 11 class A { |
| 11 get foo => 'string'; | 12 get foo => 'string'; |
| 12 set foo(value) {} | 13 set foo(value) {} |
| 13 operator[](index) => 'string'; | 14 operator[](index) => 'string'; |
| 14 operator[]=(index, value) {} | 15 operator[]=(index, value) {} |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 checkReturnInClass('A', 'returnDynamic2', subclassOfInterceptor); | 85 checkReturnInClass('A', 'returnDynamic2', subclassOfInterceptor); |
| 85 checkReturnInClass('A', 'returnDynamic3', typesInferrer.dynamicType); | 86 checkReturnInClass('A', 'returnDynamic3', typesInferrer.dynamicType); |
| 86 | 87 |
| 87 checkReturnInClass('B', 'returnString1', typesInferrer.stringType); | 88 checkReturnInClass('B', 'returnString1', typesInferrer.stringType); |
| 88 checkReturnInClass('B', 'returnString2', typesInferrer.stringType); | 89 checkReturnInClass('B', 'returnString2', typesInferrer.stringType); |
| 89 checkReturnInClass('B', 'returnDynamic1', typesInferrer.dynamicType); | 90 checkReturnInClass('B', 'returnDynamic1', typesInferrer.dynamicType); |
| 90 checkReturnInClass('B', 'returnDynamic2', typesInferrer.dynamicType); | 91 checkReturnInClass('B', 'returnDynamic2', typesInferrer.dynamicType); |
| 91 checkReturnInClass('B', 'returnDynamic3', typesInferrer.dynamicType); | 92 checkReturnInClass('B', 'returnDynamic3', typesInferrer.dynamicType); |
| 92 checkReturnInClass('B', 'returnDynamic4', typesInferrer.dynamicType); | 93 checkReturnInClass('B', 'returnDynamic4', typesInferrer.dynamicType); |
| 93 } | 94 } |
| OLD | NEW |