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

Unified Diff: tests/compiler/dart2js/simple_inferrer_closure_test.dart

Issue 87783003: Add UInt32 and UInt31 types to better infer bit operations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/simple_inferrer_closure_test.dart
===================================================================
--- tests/compiler/dart2js/simple_inferrer_closure_test.dart (revision 30666)
+++ tests/compiler/dart2js/simple_inferrer_closure_test.dart (working copy)
@@ -123,14 +123,15 @@
checkReturn(String name, type) {
var element = findElement(compiler, name);
Expect.equals(type,
- typesInferrer.getReturnTypeOfElement(element).simplify(compiler));
+ typesInferrer.getReturnTypeOfElement(element).simplify(compiler),
+ name);
}
- checkReturn('returnInt1', compiler.typesTask.intType);
- checkReturn('returnInt2', compiler.typesTask.intType);
- checkReturn('returnInt3', compiler.typesTask.intType);
- checkReturn('returnInt4', compiler.typesTask.intType);
- checkReturn('returnIntOrNull', compiler.typesTask.intType.nullable());
+ checkReturn('returnInt1', compiler.typesTask.uint31Type);
+ checkReturn('returnInt2', compiler.typesTask.uint31Type);
+ checkReturn('returnInt3', compiler.typesTask.uint31Type);
+ checkReturn('returnInt4', compiler.typesTask.uint31Type);
+ checkReturn('returnIntOrNull', compiler.typesTask.uint31Type.nullable());
checkReturn('returnDyn1', compiler.typesTask.dynamicType.nonNullable());
checkReturn('returnDyn2', compiler.typesTask.dynamicType.nonNullable());
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/simple_inferrer_final_field2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698