Index: pkg/compiler/lib/src/universe/resolution_world_builder.dart |
diff --git a/pkg/compiler/lib/src/universe/resolution_world_builder.dart b/pkg/compiler/lib/src/universe/resolution_world_builder.dart |
index 3000e38ddca200d3f4b71f4cf46adcf67a5b6d52..4573a9106a8ff70516f6873488ac3cac4351b119 100644 |
--- a/pkg/compiler/lib/src/universe/resolution_world_builder.dart |
+++ b/pkg/compiler/lib/src/universe/resolution_world_builder.dart |
@@ -630,8 +630,7 @@ abstract class ResolutionWorldBuilderBase |
useSet.addAll(usage.normalUse()); |
break; |
case StaticUseKind.DIRECT_INVOKE: |
- invariant( |
- element, 'Direct static use is not supported for resolution.'); |
+ failedAt(element, 'Direct static use is not supported for resolution.'); |
Siggi Cherem (dart-lang)
2017/05/24 16:03:29
odd that here was invariant and the line below was
|
break; |
case StaticUseKind.INLINING: |
throw new SpannableAssertionFailure(CURRENT_ELEMENT_SPANNABLE, |