mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
17 lines
391 B
Swift
17 lines
391 B
Swift
// RUN: %target-run-simple-swift | FileCheck %s
|
|
// REQUIRES: executable_test
|
|
// rdar://16726530
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
|
|
import Foundation
|
|
|
|
// Test overlain variadic methods.
|
|
let expression = NSExpression(format: "(3 + 2)**2", "LLLL", "BBBB")
|
|
let result = expression.expressionValue(with: expression, context:nil) as! NSNumber
|
|
let number = result.stringValue
|
|
print(number)
|
|
|
|
// CHECK: 25
|