mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Instead of computing it from the extended type after deserialization -- which is tricky to do, due to potential presence of protocol compositions -- we obtain the extended nominal directly. Fixes SR-11227 and linked rdar://problem/53712389.
11 lines
100 B
Swift
11 lines
100 B
Swift
struct S {}
|
|
|
|
extension S : P2 {}
|
|
|
|
extension S : P1_1 {}
|
|
|
|
func f() {
|
|
let s = S.init()
|
|
s.p1_1()
|
|
}
|