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

Unified Diff: test/codegen/temps.dart

Issue 1082333004: fixes #145, optional params+initializing formals+private fields (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 | « test/codegen/expect/temps.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/temps.dart
diff --git a/test/codegen/temps.dart b/test/codegen/temps.dart
index 833874c44a4e138c630013e7894378fdb48af3af..cb63c0a6cf3b914cd538afad949df0fa28cc402a 100644
--- a/test/codegen/temps.dart
+++ b/test/codegen/temps.dart
@@ -10,6 +10,14 @@ class FormalCollision {
FormalCollision(this._x, this.__x, this._function);
}
+class OptionalArg {
+ int _opt;
+ OptionalArg([this._opt = 123]);
+ OptionalArg.named({this._opt: 456});
+}
+
main() {
print(new FormalCollision(1, 2, (x) => x));
+ print(new OptionalArg()._opt);
+ print(new OptionalArg.named()._opt);
}
« no previous file with comments | « test/codegen/expect/temps.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698