mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Also removed the sdk 'feature' in favour of the more specific objc_interop. Swift SVN r24856
18 lines
248 B
Swift
18 lines
248 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
|
|
// XFAIL: linux
|
|
|
|
import Foundation
|
|
|
|
func vf(params: CVarArgType...) {
|
|
println("OK")
|
|
}
|
|
|
|
var a: [AnyObject]! = ["a"]
|
|
var s: String! = "s"
|
|
|
|
vf(a as NSArray)
|
|
// CHECK: OK
|
|
vf(s as NSString)
|
|
// CHECK: OK
|