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

Unified Diff: test/codegen/fieldtest.dart

Issue 1133593004: fixes #131, use before define from variables to classes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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/sunflower/sunflower.js ('k') | test/codegen/misc.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/fieldtest.dart
diff --git a/test/codegen/fieldtest.dart b/test/codegen/fieldtest.dart
index b9cebe7ffb18c8772b6a7158669a21e8fcba8d90..72df12e38cb7f988f9036b31ba6d5ff290323ed1 100644
--- a/test/codegen/fieldtest.dart
+++ b/test/codegen/fieldtest.dart
@@ -45,9 +45,17 @@ class Derived extends BaseWithGetter {
int bar = 3;
}
+class Generic<T> {
+ foo(T t) => print(bar + t);
+
+ static String bar = 'hello';
+}
+
void main() {
var a = new A();
foo(a);
bar(a);
print(baz(a));
+
+ print(new Generic<String>().foo(' world'));
}
« no previous file with comments | « test/codegen/expect/sunflower/sunflower.js ('k') | test/codegen/misc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698