Index: pkg/compiler/lib/src/inferrer/type_system.dart |
diff --git a/pkg/compiler/lib/src/inferrer/type_system.dart b/pkg/compiler/lib/src/inferrer/type_system.dart |
index 43f4074b1ad3e1eaf50b0599bf809fa1ac5c1ccf..d329b77f372b287b2c7d3ad09eafd1aba1ea1aca 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_system.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_system.dart |
@@ -282,7 +282,7 @@ class TypeSystem { |
TypeInformation type, ResolutionDartType annotation, |
{bool isNullable: true}) { |
if (annotation.treatAsDynamic) return type; |
- if (annotation.isVoid) return type; |
+ if (annotation.isVoid) return nullType; |
if (annotation.element == closedWorld.commonElements.objectClass && |
isNullable) { |
return type; |