Files
swift-mirror/test/decl/init/throwing.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

23 lines
386 B
Swift

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