Files
swift-mirror/validation-test/compiler_crashers_fixed/0036-szone-malloc-should-clear.swift
2015-04-24 20:31:43 +00:00

20 lines
527 B
Swift

// RUN: %target-swift-frontend %s -emit-ir
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// https://gist.github.com/tenderlove/66ff6ae1feed92ac37f2
func a(x: Any, _ y: Any) -> (((Any, Any) -> Any) -> Any) {
return {
(m: (Any, Any) -> Any) -> Any in
return m(x, y)
}
}
func b(z: (((Any, Any) -> Any) -> Any)) -> Any {
return z({
(p: Any, q:Any) -> Any in
return p
})
}
b(a(1, a(2, 3)))