blob: ffdaab5b384e9f1573ce13052909ea51da5c6927 [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
class Foo {
init(lhs: @autoclosure () -> Int,
rhs: @autoclosure () -> Undefined) {
// expected-error@-1 {{use of undeclared type 'Undefined'}}
}
}
func foo() -> Foo {
return Foo(lhs: 2, rhs: 2)
// expected-error@-1 {{cannot convert value of type 'Int' to expected argument type '<<error type>>'}}
}