mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
17 lines
299 B
Swift
17 lines
299 B
Swift
// RUN: %target-swift-frontend -emit-silgen -primary-file %s -o /dev/null
|
|
|
|
class Base<T> {
|
|
convenience init(count: Int) {
|
|
self.init(count: count, designated: ())
|
|
}
|
|
|
|
init(count: Int, designated: ()) {
|
|
}
|
|
}
|
|
|
|
class Derived<T> : Base<T> {
|
|
convenience init() {
|
|
self.init(count: 0)
|
|
}
|
|
}
|