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

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

Issue 3009693002: Handle int/double literals in inference (Closed)
Patch Set: Updated cf. comments Created 3 years, 4 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/kernel_inferrer_engine.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/simple.dart
diff --git a/tests/compiler/dart2js/inference/data/simple.dart b/tests/compiler/dart2js/inference/data/simple.dart
index b152304c789b1e0edb1a7ff3287d49d438de961b..0ed282326c5cddb48071212571915ed8f7d52980 100644
--- a/tests/compiler/dart2js/inference/data/simple.dart
+++ b/tests/compiler/dart2js/inference/data/simple.dart
@@ -2,5 +2,26 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+/*zero:[exact=JSUInt31]*/
+zero() => 0;
+
+/*one:[exact=JSUInt31]*/
+one() => 1;
+
+/*half:[exact=JSDouble]*/
+half() => 0.5;
+
+/*large:[subclass=JSUInt32]*/
+large() => 2147483648;
+
+/*huge:[subclass=JSPositiveInt]*/
+huge() => 4294967296;
+
/*main:[null]*/
-main() {}
+main() {
+ zero();
+ one();
+ half();
+ large();
+ huge();
+}
« no previous file with comments | « pkg/compiler/lib/src/inferrer/kernel_inferrer_engine.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698