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

Side by Side Diff: compiler/javatests/com/google/dart/compiler/parser/ClassesInterfaces.dart

Issue 11314019: Using 'interface' and 'abstract' for methods should produce error (Closed) Base URL: https://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
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 Object { 5 class Object {
6 var x; 6 var x;
7 int foo() { 7 int foo() {
8 return 42; 8 return 42;
9 } 9 }
10 bar(int x, int y, z) { } 10 bar(int x, int y, z) { }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 var c, 104 var c,
105 int d, 105 int d,
106 e(), 106 e(),
107 void f(), 107 void f(),
108 Map<int, double> g, 108 Map<int, double> g,
109 Map<int, double> h()) {} 109 Map<int, double> h()) {}
110 110
111 Baz(x, y, z) : super(x, y, z) {} 111 Baz(x, y, z) : super(x, y, z) {}
112 } 112 }
113 113
114 interface Foo extends D, E { 114 //interface Foo extends D, E {
Brian Wilkerson 2012/10/27 15:13:25 It looks like this could all be converted to use c
Brian Wilkerson 2012/10/27 15:13:25 ditto
scheglov 2012/10/27 18:08:47 Done.
115 bar(); 115 // bar();
116 } 116 //}
117 117 //
118 // Test bounds on type parameters 118 // Test bounds on type parameters
119 interface Bar<K extends Foo, V> extends Foo { 119 //interface Bar<K extends Foo, V> extends Foo {
120 } 120 //}
121 121 //
122 interface Bar<K extends Foo, V extends Foo> extends Foo { 122 //interface Bar<K extends Foo, V extends Foo> extends Foo {
123 } 123 //}
124 124 //
125 interface Bar<K, V extends Foo> extends Foo { 125 //interface Bar<K, V extends Foo> extends Foo {
126 } 126 //}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698