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

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

Issue 3009693002: Handle int/double literals in inference (Closed)
Patch Set: 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
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..f424a350d489e8a728a7841d4dfe2a2670a832ea 100644
--- a/tests/compiler/dart2js/inference/data/simple.dart
+++ b/tests/compiler/dart2js/inference/data/simple.dart
@@ -2,5 +2,22 @@
// 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;
+
/*main:[null]*/
-main() {}
+main() {
+ zero();
+ one();
+ half();
+ large();
Siggi Cherem (dart-lang) 2017/08/28 22:34:57 maybe add something that doesn't fit in 32 bit as
Johnni Winther 2017/08/29 08:31:25 Done.
+}

Powered by Google App Engine
This is Rietveld 408576698