Commits

Chris Lattner committed c72b337af15
Fix SR-599 - Function with unresolved generic diagnosed as property There are two problems here, first we were diagnosing type member constraints with the "function 'foo' was used as a property" error, which doesn't make sense. Second, we were diagnosing member constraints as lookup failures when the constraint was actually referring to an archetype in its anchor expression that wasn't resolved. Address this by simply ignoring the constraint and letting ambiguity resolution handle it. Before: t.swift:5:9: error: function 'foo' was used as a property; add () to call it After: t.swift:5:9: error: generic parameter 'T' could not be inferred let a = foo() t.swift:4:6: note: in call to function 'foo' func foo<T: IntegerType>() -> T.Type { return T.self } Thanks to Jordan for noticing this!