Files
swift-mirror/test/Interpreter/SDK/objc_block_generic.swift
Dmitri Hrybenko f46f16ae82 stdlib: implement new print() API
rdar://20775683

Swift SVN r28309
2015-05-08 01:37:59 +00:00

17 lines
361 B
Swift

// RUN: %target-run-simple-swift | FileCheck %s
// REQUIRES: objc_interop
import Foundation
autoreleasepool {
let f: @convention(block) Int -> Int = { $0 }
// In an -Onone build this instantiates the generic metadata for
// @convention(block) Int -> Int
let ff: (@convention(block) Int -> Int)? = f
let gg = ff
// CHECK: 219
print(gg!(219))
}