Files
swift-mirror/test/SourceKit/CursorInfo/rdar_33334141.swift
2018-01-22 15:30:12 -08:00

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)