Files
swift-mirror/test/IRGen/Inputs/keypaths_external_other.swift
Slava Pestov 644d1d61fb IRGen: When emitting keypaths ignore external reference within the same module
This can happen when emitting an inlinable function in a resilient
module, because inlinable functions use the most conservative
access pattern.

This allows some earlier tests for keypaths inside inlinable
functions to pass IR emission, too.

An existing test used an external reference within the same module
to test external references; move this part to a separate test that
builds a separate module to correctly test this functionality.
2018-11-16 23:18:37 -05:00

6 lines
151 B
Swift

public struct G<T> {
public var x: T { get { fatalError() } set { } }
public subscript<U: Hashable>(x: U) -> T { get { fatalError() } set { } }
}