mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Apply the same is-generic check to initializers that we apply to functions when establishing basic override compatibility. This is a simple optimization for master, but fixes a crasher for Swift 3.1. Fixes SR-4059.
9 lines
184 B
Swift
9 lines
184 B
Swift
// RUN: %target-swift-frontend %s -emit-ir
|
|
|
|
class Base {
|
|
init<S: Sequence>(_ s: S) where S.Iterator.Element == UInt8 { }
|
|
}
|
|
|
|
class Sub: Base {
|
|
init(_ b: [UInt8]) { super.init(b) }
|
|
} |