| Index: pkg/compiler/lib/src/ssa/type_builder.dart
|
| diff --git a/pkg/compiler/lib/src/ssa/type_builder.dart b/pkg/compiler/lib/src/ssa/type_builder.dart
|
| index f8b332ceb1a01814f0e8fd4380a9fbacb6dffb71..7b65daa0d851414334e1ee959d9ae0806d900399 100644
|
| --- a/pkg/compiler/lib/src/ssa/type_builder.dart
|
| +++ b/pkg/compiler/lib/src/ssa/type_builder.dart
|
| @@ -165,6 +165,7 @@ class TypeBuilder {
|
| /// Check that [type] is valid in the context of `localsHandler.contextClass`.
|
| /// This should only be called in assertions.
|
| bool assertTypeInContext(ResolutionDartType type, [Spannable spannable]) {
|
| + if (builder.compiler.options.useKernel) return true;
|
| return invariant(spannable == null ? CURRENT_ELEMENT_SPANNABLE : spannable,
|
| () {
|
| ClassElement contextClass = Types.getClassContext(type);
|
|
|