Files
swift-mirror/test/Constraints/rdar46377919.swift
Holly Borla 94bbb8f76e [ConstraintSystem] Finish porting unresolved member reference failures.
This covers member failures where the error is at the declaration, so
the result of member lookup is "already diagnosed".
2020-01-05 11:33:02 -08:00

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)
}