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

Unified Diff: tests/compiler/dart2js/kernel/compile_from_dill_test.dart

Issue 2931153002: Support field initializers and static/top-level fields in compile_with_dill_test (Closed)
Patch Set: Created 3 years, 6 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 | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/compile_from_dill_test.dart
diff --git a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
index 686f52abc917ea3fe4b0e1d5de6ad193182b9da1..a1999de940c61fbfe85c2054b9eb8b433f65e71e 100644
--- a/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
+++ b/tests/compiler/dart2js/kernel/compile_from_dill_test.dart
@@ -36,8 +36,9 @@ const SOURCE = const {
foo() => 1;
bar(a) => !a;
class Class {
- int field;
- Class();
+ var field;
+ static var staticField;
+ Class(this.field);
}
main() {
foo();
@@ -45,7 +46,8 @@ main() {
[];
{};
new Object();
- new Class();
+ new Class('');
+ Class.staticField;
var x = null;
return x;
}
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698