mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This covers member failures where the error is at the declaration, so the result of member lookup is "already diagnosed".
13 lines
255 B
Swift
13 lines
255 B
Swift
// 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)
|
|
}
|