mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
299 B
Swift
13 lines
299 B
Swift
public struct Foo<T> {
|
|
let prop: Int
|
|
}
|
|
extension Foo where T: AnyObject {
|
|
public var foo: Int { return 1 }
|
|
}
|
|
_ = Foo<Int>(prop: 42).prop
|
|
|
|
|
|
// RUN: %sourcekitd-test -req=cursor -cursor-action -pos=7:24 -length 4 %s -- %s | %FileCheck %s
|
|
|
|
// CHECK: source.lang.swift.ref.var.instance (2:7-2:11)
|