Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Side by Side Diff: tests/lib_strong/html/js_typed_interop_anonymous_unreachable_test.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 @JS() 5 @JS()
6 library js_typed_interop_anonymous_unreachable_test; 6 library js_typed_interop_anonymous_unreachable_test;
7 7
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:js' as js; 9 import 'dart:js' as js;
10 10
11 import 'package:js/js.dart'; 11 import 'package:js/js.dart';
12 import 'package:expect/minitest.dart'; 12 import 'package:expect/minitest.dart';
13 13
14 @JS() 14 @JS()
15 @anonymous 15 @anonymous
16 class Literal { 16 class Literal {
17 external factory Literal({int x, String y, num z}); 17 external factory Literal({int x, String y, num z});
18 18
19 external int get x; 19 external int get x;
20 external String get y; 20 external String get y;
21 external num get z; 21 external num get z;
22 } 22 }
23 23
24 main() { 24 main() {
25 test('nothing to do', () { 25 test('nothing to do', () {
26 // This test is empty, but it is a regression for Issue# 24974: dartjs 26 // This test is empty, but it is a regression for Issue# 24974: dart2js
27 // would crash trying to compile code that used @anonymous and that was 27 // would crash trying to compile code that used @anonymous and that was
28 // not reachable from main. 28 // not reachable from main.
29 }); 29 });
30 } 30 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698