Skip to content

Commit fc59abe

Browse files
committed
This test regressed after recent changes
We fail to emit a diagnostic here, because name lookup is able to find the associated type, even though we don't build a valid generic signature in this case. Some more changes to name lookup to untangle "find members in protocols" from "find concrete witness" flags are needed. I'll do this soon, as part of fixing unqualified lookup of protocol typealiases, which currently doesn't work either.
1 parent 69d8867 commit fc59abe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/decl/ext/generic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ struct S4<Q>: P4 {
152152
init(_: Q) { }
153153
}
154154

155-
extension S4 where T : P5 {} // expected-error{{type 'T' in conformance requirement does not refer to a generic parameter or associated type}}
155+
extension S4 where T : P5 {} // expected-FIXME-error{{type 'T' in conformance requirement does not refer to a generic parameter or associated type}}

0 commit comments

Comments
 (0)