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

Unified Diff: sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 years, 5 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: sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart
index 1c05b7769f359d152143fea42439ca4d6e7c457b..57b790471435c2adfdde9242567c2eca37e18282 100644
--- a/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/types/concrete_types_inferrer.dart
@@ -403,7 +403,7 @@ class ConcreteTypesEnvironment {
Types types = inferrer.compiler.types;
bool paramMatches(ConcreteType concrete, VariableElement parameter) {
DartType parameterType = parameter.variables.type;
- if (parameterType.isDynamic || parameterType.isRaw) {
+ if (parameterType.treatAsDynamic || parameterType.isRaw) {
return true;
}
for (BaseType baseType in concrete.baseTypes) {
@@ -1221,7 +1221,7 @@ class ConcreteTypesInferrer extends TypesInferrer {
for (final type in typesReturned) {
if (type == native.SpecialType.JsObject) {
registerDynamic();
- } else if (type.isDynamic) {
+ } else if (type.treatAsDynamic) {
registerDynamic();
} else {
ClassElement element = type.element;

Powered by Google App Engine
This is Rietveld 408576698