mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
13 lines
258 B
Swift
13 lines
258 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
|
|
class Foo {
|
|
init(lhs: @autoclosure () -> Int,
|
|
rhs: @autoclosure () -> Undefined) {
|
|
// expected-error@-1 {{cannot find type 'Undefined' in scope}}
|
|
}
|
|
}
|
|
|
|
func foo() -> Foo {
|
|
return Foo(lhs: 2, rhs: 2)
|
|
}
|