mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
11 lines
133 B
Swift
11 lines
133 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
func foo(_:[() -> ()]){}
|
|
func foo(_:[() throws -> ()]){}
|
|
|
|
func x() {}
|
|
|
|
var bs = [x]
|
|
|
|
foo(bs)
|