Index: pkg/compiler/lib/src/types/type_mask.dart |
diff --git a/pkg/compiler/lib/src/types/type_mask.dart b/pkg/compiler/lib/src/types/type_mask.dart |
index 7cbecc501ecdd4c72d7ca46a4242dc07a9be3f43..a290aa2fa448c523d5f24137c69295ea8553f486 100644 |
--- a/pkg/compiler/lib/src/types/type_mask.dart |
+++ b/pkg/compiler/lib/src/types/type_mask.dart |
@@ -88,8 +88,8 @@ abstract class TypeMask implements ReceiverConstraint { |
factory TypeMask.exact(ClassElement base, ClassWorld classWorld) { |
assert(invariant(base, classWorld.isInstantiated(base), |
- message: "Cannot create exact type mask for uninstantiated class " |
- "${base.name}")); |
+ message: () => "Cannot create exact type mask for uninstantiated " |
+ "class $base.\n${classWorld.dump()}")); |
return new FlatTypeMask.exact(base); |
} |
@@ -121,8 +121,8 @@ abstract class TypeMask implements ReceiverConstraint { |
factory TypeMask.nonNullExact(ClassElement base, ClassWorld classWorld) { |
assert(invariant(base, classWorld.isInstantiated(base), |
- message: "Cannot create exact type mask for " |
- "uninstantiated class $base.")); |
+ message: () => "Cannot create exact type mask for " |
+ "uninstantiated class $base.\n${classWorld.dump()}")); |
return new FlatTypeMask.nonNullExact(base); |
} |