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 2d66363c4b851ac426cea07ce52f992303f9188b..550d0a5b818bb2a858698acf09d77e19cbaf3779 100644 |
--- a/pkg/compiler/lib/src/inferrer/type_system.dart |
+++ b/pkg/compiler/lib/src/inferrer/type_system.dart |
@@ -277,7 +277,7 @@ class TypeSystem { |
TypeInformation type, ResolutionDartType annotation, |
{bool isNullable: true}) { |
if (annotation.treatAsDynamic) return type; |
- if (annotation.isVoid) return nullType; |
+ if (annotation.isVoid) return type; |
if (annotation.element == closedWorld.commonElements.objectClass && |
isNullable) { |
return type; |