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

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

Issue 14791005: BREAKING CHANGE: enforce part of directive (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « tests/language/library_prefixes_test1.dart ('k') | tests/language/multi_pass2_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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 part of LibraryPrefixesTest2.lib;
6
5 class Constants { 7 class Constants {
6 static const PI = 3.14; 8 static const PI = 3.14;
7 static const foo = 2; 9 static const foo = 2;
8 } 10 }
9 11
10 class A { 12 class A {
11 static const y = 0; 13 static const y = 0;
12 int x; 14 int x;
13 A() : x = 2 {} 15 A() : x = 2 {}
14 A.named() : x = 4 {} 16 A.named() : x = 4 {}
(...skipping 23 matching lines...) Expand all
38 40
39 class E { 41 class E {
40 var f; 42 var f;
41 E() {} 43 E() {}
42 E.fun(x) : f = (() { return x + 13; }) {} 44 E.fun(x) : f = (() { return x + 13; }) {}
43 static foo() { return 3; } 45 static foo() { return 3; }
44 static fooo(x) { return () { return x + 1024; }; } 46 static fooo(x) { return () { return x + 1024; }; }
45 bar() { return 4; } 47 bar() { return 4; }
46 toto(x) { return () { return x + 5; }; } 48 toto(x) { return () { return x + 5; }; }
47 } 49 }
OLDNEW
« no previous file with comments | « tests/language/library_prefixes_test1.dart ('k') | tests/language/multi_pass2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698