Files
swift-mirror/test/Sema/Inputs/composition_extension_usage.swift
Varun Gandhi 0dcb936531 Serialize extended nominal separately when serializing an extension.
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.
2019-09-05 15:33:02 -07:00

11 lines
100 B
Swift

struct S {}
extension S : P2 {}
extension S : P1_1 {}
func f() {
let s = S.init()
s.p1_1()
}