Skip to content

Commit f6b39ae

Browse files
committed
Add regression test to close #52883
1 parent 4d3aa95 commit f6b39ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/decl/protocol/protocol_with_superclass.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,12 @@ func usesProtoRefinesClass2<T : ProtoRefinesClassComposition>(_ t: T) {
351351
t.genericMethod((1, 2))
352352
let _: BaseProto = t
353353
}
354+
355+
// https://github.com/apple/swift/issues/52883
356+
class issue52883_C: issue52883_P {}
357+
protocol issue52883_P: issue52883_C {
358+
func foo()
359+
}
360+
extension issue52883_P {
361+
func foo() {}
362+
}

0 commit comments

Comments
 (0)