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

Unified Diff: compiler/javatests/com/google/dart/compiler/backend/js/testRuntimeTypes.dart

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Got rid of some problems. Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: compiler/javatests/com/google/dart/compiler/backend/js/testRuntimeTypes.dart
diff --git a/compiler/javatests/com/google/dart/compiler/backend/js/testRuntimeTypes.dart b/compiler/javatests/com/google/dart/compiler/backend/js/testRuntimeTypes.dart
index 8059b321972a94c14cf587b00add58907efb1a32..30e40cbad9f38f01f1cdbe7cf33fdecf92bc9b18 100644
--- a/compiler/javatests/com/google/dart/compiler/backend/js/testRuntimeTypes.dart
+++ b/compiler/javatests/com/google/dart/compiler/backend/js/testRuntimeTypes.dart
@@ -10,15 +10,13 @@ class C<T> {
const C();
}
-class D extends C {
- factory D<T>() {
+class D<T> extends C<T> {
+ factory D() {
return new C<T>();
ahe 2011/12/15 09:02:13 C is not a subtype of D. So this should fail in ch
zundel 2011/12/16 21:36:29 Done.
}
}
-
class Main {
ahe 2011/12/15 09:02:13 Consider removing this class and turn the method i
zundel 2011/12/16 21:36:29 The test driver for this test pulls out all code f
-
- static void main() {
+ static void main() {
var a = 0;
var _marker_0 = 1;
var _marker_B1 = const B();
@@ -27,8 +25,8 @@ class Main {
var _marker_C2 = const C<String>();
var _marker_C3 = new C();
var _marker_C4 = new C<Object>();
- var _marker_D1 = new D();
- // var _marker_D2 = new D<String>(); // fails in resolver: wrong number of type args
+ var _marker_D1 = new D();
+ var _marker_D2 = new D<String>();
a = _marker_B1 is B;
a = _marker_C1 is C;
@@ -36,6 +34,10 @@ class Main {
a = _marker_C4 is C<Object>;
a = _marker_C4 is Object;
a = _marker_D1 is D;
- // a = _marker_D2 is D<String>;
- }
+ a = _marker_D2 is D<String>;
+ }
+}
+
+main() {
+ Main.main();
}

Powered by Google App Engine
This is Rietveld 408576698