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

Unified Diff: tests/compiler/dart2js/inference/data/locals.dart

Issue 3008083002: Handle variable set in inferrer (Closed)
Patch Set: Created 3 years, 3 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/inferrer/builder_kernel.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/inference/data/locals.dart
diff --git a/tests/compiler/dart2js/inference/data/locals.dart b/tests/compiler/dart2js/inference/data/locals.dart
index 6b19bc3039762a03209ce074b211bab2f6ac931e..eefa25bc290d58285c4b98390bf65bfb9cb30877 100644
--- a/tests/compiler/dart2js/inference/data/locals.dart
+++ b/tests/compiler/dart2js/inference/data/locals.dart
@@ -6,6 +6,7 @@
main() {
uninitializedLocal();
initializedLocal();
+ updatedLocal();
}
/*element: uninitializedLocal:[null]*/
@@ -19,3 +20,10 @@ initializedLocal() {
var local = 0;
return local;
}
+
+/*element: updatedLocal:[exact=JSUInt31]*/
+updatedLocal() {
+ var local2;
+ local2 = 0;
+ return local2;
+}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/builder_kernel.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698