Index: sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
index 7feb4013b844d73ef177bc24fd779dee4a7eaea3..2064f0948462af1fcc7431bdc93b563a37ed24da 100644 |
--- a/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/runtime_types.dart |
@@ -23,10 +23,11 @@ class RuntimeTypeInformation { |
InterfaceType interface = t; |
ClassElement element = t.element; |
if (element.typeVariables.isEmpty) return; |
- bool isRaw = interface.arguments.isEmpty; |
+ bool isRaw = interface.typeArguments.isEmpty; |
if (isRaw && !expandRawType) return; |
builder.add('<'); |
- Iterable items = isRaw ? element.typeVariables : interface.arguments; |
+ Iterable items = |
+ isRaw ? element.typeVariables : interface.typeArguments; |
var stringify = isRaw ? (_) => 'dynamic' : (type) => type.toString(); |
bool first = true; |
for (var item in items) { |
@@ -48,7 +49,7 @@ class RuntimeTypeInformation { |
static bool hasTypeArguments(DartType type) { |
if (type is InterfaceType) { |
InterfaceType interfaceType = type; |
- return !interfaceType.arguments.isEmpty; |
+ return !interfaceType.typeArguments.isEmpty; |
} |
return false; |
} |