blob: 1a5dfd044c591ede044e20d9095bee581e7c003c [file] [log] [blame]
// RUN: %target-typecheck-verify-swift
protocol P {
init()
}
class A : P { } // expected-error{{initializer requirement 'init()' can only be satisfied by a `required` initializer in non-final class 'A'}}
// No further errors
class B : A {
init(x : Int) {}
}
class C : B { }
class D : B {
init() {
super.init()
}
}