| 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 // SharedOptions=--experimental-trust-js-interop-type-annotations | 5 // SharedOptions=--experimental-trust-js-interop-type-annotations |
| 6 | 6 |
| 7 // Same test as js_typed_interop_anonymous_unreachable, but using the | 7 // Same test as js_typed_interop_anonymous_unreachable, but using the |
| 8 // --experimental-trust-js-interop-type-annotations flag. | 8 // --experimental-trust-js-interop-type-annotations flag. |
| 9 @JS() | 9 @JS() |
| 10 library js_typed_interop_anonymous_unreachable_exp_test; | 10 library js_typed_interop_anonymous_unreachable_exp_test; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 external factory Literal({int x, String y, num z}); | 22 external factory Literal({int x, String y, num z}); |
| 23 | 23 |
| 24 external int get x; | 24 external int get x; |
| 25 external String get y; | 25 external String get y; |
| 26 external num get z; | 26 external num get z; |
| 27 } | 27 } |
| 28 | 28 |
| 29 main() { | 29 main() { |
| 30 useHtmlConfiguration(); | 30 useHtmlConfiguration(); |
| 31 test('nothing to do', () { | 31 test('nothing to do', () { |
| 32 // This test is empty, but it is a regression for Issue# 24974: dartjs | 32 // This test is empty, but it is a regression for Issue# 24974: dart2js |
| 33 // would crash trying to compile code that used @anonymous and that was | 33 // would crash trying to compile code that used @anonymous and that was |
| 34 // not reachable from main. | 34 // not reachable from main. |
| 35 }); | 35 }); |
| 36 } | 36 } |
| OLD | NEW |