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

Side by Side Diff: tests/language/external_test.dart

Issue 11415105: Eliminate explicit abstract from class members in tests (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « tests/language/bad_constructor_test.dart ('k') | tests/language/get_set_syntax_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 class Foo { 5 class Foo {
6 var x; 6 var x;
7 f() {} 7 f() {}
8 8
9 external var x01; /// 01: compile-time error 9 external var x01; /// 01: compile-time error
10 external int x02; /// 02: compile-time error 10 external int x02; /// 02: compile-time error
11 11
12 external f10(); /// 10: runtime error 12 external f10(); /// 10: runtime error
13 external f11() { } /// 11: compile-time error 13 external f11() { } /// 11: compile-time error
14 external f12() => 1; /// 12: compile-time error 14 external f12() => 1; /// 12: compile-time error
15 external static f13(); /// 13: runtime error 15 external static f13(); /// 13: runtime error
16 static external f14(); /// 14: compile-time error 16 static external f14(); /// 14: compile-time error
17 external abstract f15(); /// 15: compile-time error
18 int external f16(); /// 16: compile-time error 17 int external f16(); /// 16: compile-time error
19 18
20 external Foo.n20(); /// 20: runtime error 19 external Foo.n20(); /// 20: runtime error
21 external Foo.n21() : x(1); /// 21: compile-time error 20 external Foo.n21() : x(1); /// 21: compile-time error
22 external Foo.n22() { x = 1; } /// 22: compile-time error 21 external Foo.n22() { x = 1; } /// 22: compile-time error
23 external factory Foo.n23() => new Foo(); /// 23: compile-time error 22 external factory Foo.n23() => new Foo(); /// 23: compile-time error
24 } 23 }
25 24
26 external int t06(int i) { } /// 30: compile-time error 25 external int t06(int i) { } /// 30: compile-time error
27 external int t07(int i) => i + 1; /// 31: compile-time error 26 external int t07(int i) => i + 1; /// 31: compile-time error
(...skipping 20 matching lines...) Expand all
48 47
49 // Try calling an unpatched external constructor. 48 // Try calling an unpatched external constructor.
50 try { /// 20: continued 49 try { /// 20: continued
51 var foo = new Foo.n09(); /// 20: continued 50 var foo = new Foo.n09(); /// 20: continued
52 } on String catch (exc) { /// 20: continued 51 } on String catch (exc) { /// 20: continued
53 if (exc == "External implementation missing.") { /// 20: continued 52 if (exc == "External implementation missing.") { /// 20: continued
54 throw exc; /// 20: continued 53 throw exc; /// 20: continued
55 } /// 20: continued 54 } /// 20: continued
56 } /// 20: continued 55 } /// 20: continued
57 } 56 }
OLDNEW
« no previous file with comments | « tests/language/bad_constructor_test.dart ('k') | tests/language/get_set_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698