blob: 38dfa12b9dd88b8da2aeb33e64bcae249192fa8d [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
struct Throws1 {
init() throws { }
}
// <rdar://problem/22108568> Infinite recursion in typeCheckChildIndependently()
func unwrap() -> Int {}
class A22108568 {
init(a: ()) {}
}
class B22108568 : A22108568 {
required init() {
try super.init(a: unwrap()) // expected-error {{argument passed to call that takes no arguments}}
}
}