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

Unified Diff: pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart

Issue 1371193004: Add bool value types to type inference. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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: pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
index 4bb654a97f8dd5ad7de866c73d60c7f5a0b1528f..b86d5b511982c93c64bdd3ef1d06d45109d26635 100644
--- a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
@@ -436,6 +436,12 @@ class ConcreteTypeSystem extends TypeSystem<ConcreteType> {
return _stringType;
}
+ @override
+ ConcreteType boolLiteralType(_) {
+ inferrer.augmentSeenClasses(compiler.backend.boolImplementation);
+ return _boolType;
+ }
+
/**
* Returns the [TypeMask] representation of [baseType].
*/

Powered by Google App Engine
This is Rietveld 408576698