Index: pkg/compiler/lib/src/inferrer/builder.dart |
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart |
index 7be5c044fd24075a5c7382605ac74b8b54f9ded5..cca3291440d75f27724fb4d1896e1c39362300b3 100644 |
--- a/pkg/compiler/lib/src/inferrer/builder.dart |
+++ b/pkg/compiler/lib/src/inferrer/builder.dart |
@@ -961,7 +961,8 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation> |
} |
TypeInformation type = |
(defaultValue == null) ? types.nullType : visitor.visit(defaultValue); |
- inferrer.setDefaultTypeOfParameter(parameter, type); |
+ inferrer.setDefaultTypeOfParameter(parameter, type, |
+ isInstanceMember: function.isInstanceMember); |
}); |
if (closedWorld.nativeData.isNativeMember(analyzedElement)) { |