Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0078-sr4059.swift
Doug Gregor f74763d933 [Type checker] Teach areOverrideCompatibleSimple() to look at initializers.
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.
2017-02-27 13:34:49 -08:00

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