Files
swift-mirror/test/Interpreter/SDK/Foundation_NSExpression.swift
2016-08-10 23:52:02 -07:00

17 lines
392 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