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

Side by Side Diff: tests/language/src/LibraryPrefixesTest2.dart

Issue 10248007: test rename overhaul: step 8 - language tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 class Constants {
6 static final PI = 3.14;
7 static final foo = 2;
8 }
9
10 class A {
11 static final y = 0;
12 int x;
13 A() : x = 2 {}
14 A.named() : x = 4 {}
15 A.superC(x) : x = x + 11 {}
16 factory A.fac() { return new A.named(); }
17 }
18
19 class B extends A {
20 B() : super() {}
21 B.named() : super.superC(2) {}
22 factory B.fac() { return new B.named(); }
23 }
24
25 class C {
26 final int x;
27 const C() : x = 2;
28 const C.named() : x = 4;
29 const C.superC(x) : x = x + 11;
30 factory C.fac() { return const C.named(); }
31 }
32
33 class D extends C {
34 const D() : super();
35 const D.named() : super.superC(2);
36 factory D.fac() { return const D.named(); }
37 }
38
39 class E {
40 var f;
41 E() {}
42 E.fun(x) : f = (() { return x + 13; }) {}
43 static foo() { return 3; }
44 static fooo(x) { return () { return x + 1024; }; }
45 bar() { return 4; }
46 toto(x) { return () { return x + 5; }; }
47 }
OLDNEW
« no previous file with comments | « tests/language/src/LibraryPrefixesTest1.lib ('k') | tests/language/src/LibraryPrefixesTest2.lib » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698