Files
swift-mirror/test/Constraints/collection-of-function.swift
2018-07-26 23:13:43 -07:00

11 lines
133 B
Swift

// RUN: %target-typecheck-verify-swift
func foo(_:[() -> ()]){}
func foo(_:[() throws -> ()]){}
func x() {}
var bs = [x]
foo(bs)