mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
8 lines
214 B
Swift
8 lines
214 B
Swift
// Body of closure in parameter to call of closureTaker is created lazily
|
|
// and this test ensures that body scope does get expanded
|
|
var v = closureTaker {
|
|
func amIFound() {}
|
|
}
|
|
|
|
func closureTaker(_: () -> Void )
|