Files
swift-mirror/test/Serialization/Inputs/conformance-multi-file-other.swift
Slava Pestov 3b203a520b Serialization: Don't serialize requirement environment for witnesses
Generic environments and archetypes can be expensive to deserialize
if they involve a generic signature not seen before.

Also, canonicalize the witness substitutions to eliminate type
aliases, and map them to interface types, which again are cheaper
to deserialize.
2018-09-27 22:16:17 -07:00

18 lines
327 B
Swift

public class Base {
public init() {}
}
public protocol BaseProto {
func method()
}
extension Base : BaseProto {
public func method() {}
}
// Make sure we can serialize witness substitutions where replacement types
// involve generic parameters.
public class GenericWitness<T> : BaseProto {
public func method() {}
}