mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
260 B
Swift
12 lines
260 B
Swift
@objc protocol Proto {
|
|
@objc optional func optionalMethod() -> Int
|
|
}
|
|
|
|
func test<T : Proto>(obj: T) {
|
|
let _ = obj.
|
|
}
|
|
|
|
// RUN: %sourcekitd-test -req=complete -pos=6:15 %s -- %s > %t.response
|
|
// RUN: %diff -u %s.response %t.response
|
|
// REQUIRES: objc_interop
|