Files
swift-mirror/test/Constraints/rdar46377919.swift
2020-04-28 14:11:39 -07:00

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