mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Optional chain and unresolved member chain should consider a generic specialization as a chain expression. rdar://140378864
14 lines
192 B
Swift
14 lines
192 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
|
|
struct Outer {
|
|
struct Inner {
|
|
struct Foo<T> {
|
|
static func id(_ v: T) -> T { v }
|
|
}
|
|
}
|
|
}
|
|
|
|
let _: Outer = .Inner.Foo<Outer>.id(.init())
|
|
|