Files
swift-mirror/test/expr/closure/nested_inner_closures.swift
Hamish Knight 3a28a525cb [AST] Enforce that ParenExpr is typed as ParenType
Make sure we don't accidentally drop the sugar of
the type.
2021-08-02 20:40:50 +01:00

9 lines
177 B
Swift

// RUN: %target-typecheck-verify-swift
assert({ () -> Bool in
return true
}(), "")
var x = ({ () -> String in return "s" })()
var y = ((({ () -> String in return "s" })))()