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

Side by Side Diff: tests/language_strong/illegal_initializer_test.dart

Issue 3003933002: Migrate block 116. (Closed)
Patch Set: Created 3 years, 3 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
(Empty)
1 // Copyright (c) 2013, 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 A {
6 A();
7 A.foo();
8 }
9
10 class B extends A {
11 B.c1()
12 : super.foo
13 /* // //# 01: compile-time error
14 ()
15 */ // //# 01: continued
16 ;
17
18 B.foo();
19 B.c2()
20 : this.foo
21 /* // //# 02: compile-time error
22 ()
23 */ // //# 02: continued
24 ;
25
26 B.c3()
27 : super
28 /* // //# 03: compile-time error
29 ()
30 */ // //# 03: continued
31 ;
32
33 B();
34 B.c4()
35 : this
36 /* // //# 04: compile-time error
37 ()
38 */ // //# 04: continued
39 ;
40 }
41
42 main() {
43 new B.c1();
44 new B.c2();
45 new B.c3();
46 new B.c4();
47 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698