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

Unified Diff: tests/compiler/dart2js/unparser_test.dart

Issue 10789012: Record default clause for interfaces in parser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index 6bdb32dee4e081a2b9e30073adbcbb3c94022008..408d9d241e061a933a071538fae1778aa5ca2cd1 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -167,6 +167,11 @@ testFactoryConstructor() {
// Now more complicated, with normal constructor and factory parameters.
testDart2Dart('main(){new A.fromFoo(5);}'
'class A{A(this.f);A.fromFoo(foo):this("f");final String f;}');
+ // Now even more complicated, with interface and default factory.
+ testDart2Dart('main(){new A.fromFoo(5); new I.fromFoo();}'
+ 'class IFactory{factory I.fromFoo()=> new A(5);}'
+ 'interface I default IFactory{I.fromFoo();}'
+ 'class A implements I{A(this.f);A.fromFoo(foo):this("f");final String f;}');
}
main() {
« no previous file with comments | « lib/compiler/implementation/scanner/listener.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698