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

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

Issue 3008133002: Handle local invoke in inferrer (Closed)
Patch Set: dartfmt 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
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 eefa25bc290d58285c4b98390bf65bfb9cb30877..4ef0128215a426c77b066e227100216594ccb115 100644
--- a/tests/compiler/dart2js/inference/data/locals.dart
+++ b/tests/compiler/dart2js/inference/data/locals.dart
@@ -7,6 +7,8 @@ main() {
uninitializedLocal();
initializedLocal();
updatedLocal();
+ invokeLocal();
+ postfixLocal();
}
/*element: uninitializedLocal:[null]*/
@@ -27,3 +29,18 @@ updatedLocal() {
local2 = 0;
return local2;
}
+
+/*element: invokeLocal:[null]*/
+invokeLocal() {
+ var local2 = 0;
+ local2. /*invoke: [exact=JSUInt31]*/ toString();
+ return null;
+}
+
+/*element: postfixLocal:[null]*/
+postfixLocal() {
+ // ignore: UNUSED_LOCAL_VARIABLE
Siggi Cherem (dart-lang) 2017/09/05 19:20:39 should we disable running the analyzer on this dat
Johnni Winther 2017/09/07 08:08:52 Maybe.
+ var local2 = 0;
+ local2 /*invoke: [exact=JSUInt31]*/ ++;
+ return null;
+}

Powered by Google App Engine
This is Rietveld 408576698