Index: pkg/compiler/lib/src/js_backend/backend_serialization.dart |
diff --git a/pkg/compiler/lib/src/js_backend/backend_serialization.dart b/pkg/compiler/lib/src/js_backend/backend_serialization.dart |
index cea775ed0d07d160beb7795adfe5c11de2b360d3..907d61781f03e5d3fd2d9cb3ec3596e23caf7102 100644 |
--- a/pkg/compiler/lib/src/js_backend/backend_serialization.dart |
+++ b/pkg/compiler/lib/src/js_backend/backend_serialization.dart |
@@ -107,7 +107,7 @@ class JavaScriptBackendSerializer implements SerializerPlugin { |
} |
@override |
- void onData(NativeBehavior behavior, ObjectEncoder encoder) { |
+ void onData(covariant NativeBehavior behavior, ObjectEncoder encoder) { |
NativeBehaviorSerialization.serializeNativeBehavior(behavior, encoder); |
} |
} |