Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
index 032ba03d6105aadfb44337c0e3e4aaca9576f95d..96de2a6b0082050dba57aa916d4c428b580815df 100644 |
--- a/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
+++ b/sdk/lib/_internal/compiler/implementation/ssa/optimize.dart |
@@ -519,7 +519,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase { |
// TODO(karlklose): remove the hasTypeArguments check. |
} else if (expressionType.isUseful() |
&& !expressionType.canBeNull() |
- && !backend.rti.hasTypeArguments(type)) { |
+ && !RuntimeTypeInformation.hasTypeArguments(type)) { |
DartType receiverType = expressionType.computeType(compiler); |
if (receiverType != null) { |
if (compiler.types.isSubtype(receiverType, type)) { |