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

Unified Diff: pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart

Issue 2828253003: Add top level type inference logic for integer literals. (Closed)
Patch Set: Clean up, bug fix, and remove unintentional expectations changes Created 3 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
Index: pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart
diff --git a/pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart b/pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a2056d44945f3e04adc2cf9029e78bf8b19496cb
--- /dev/null
+++ b/pkg/front_end/testcases/inference/toplevel_inference_toplevel_var.dart
@@ -0,0 +1,6 @@
+/*@testedFeatures=inference*/
+var /*@topType=dart.core::int*/ i = 0;
+
+main() {
+ var /*@type=dart.core::int*/ j = i;
+}

Powered by Google App Engine
This is Rietveld 408576698