Index: pkg/compiler/lib/src/serialization/impact_serialization.dart |
diff --git a/pkg/compiler/lib/src/serialization/impact_serialization.dart b/pkg/compiler/lib/src/serialization/impact_serialization.dart |
index a83d308ac042d23745b67292d8e0195d3775952e..7cf9ce1513394afaa74633b9bf947ec1d6067ac0 100644 |
--- a/pkg/compiler/lib/src/serialization/impact_serialization.dart |
+++ b/pkg/compiler/lib/src/serialization/impact_serialization.dart |
@@ -91,6 +91,11 @@ class ImpactSerializer implements WorldImpactVisitor { |
object.setEnum(Key.KIND, typeUse.kind); |
object.setType(Key.TYPE, typeUse.type); |
} |
+ |
+ @override |
+ void visitConstantUse(ConstantUse typeUse) { |
+ throw new UnsupportedError("ConstantUse serialization is not supported."); |
+ } |
} |
/// A deserialized [WorldImpact] object. |