You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
swift-ci opened this issue
Apr 17, 2018
· 1 comment
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
class Base {
}
protocol P where Self: Base {
init(i: Int)
}
class A: Base, P {
required init(i: Int) {}
}
class B: Base, P {
required init(i: Int) {}
}
let p: P.Type = A.self
let a = p.init(i: 1)
print("\(a)")
I've got an error Command failed due to signal: Segmentation fault: 11
If change
{code:none} protocol P where Self: Base {
to
{code:none}protocolP {
the compiler works well
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
Xcode 9.3, Swift 4.1
macOS, iOS target
Additional Detail from JIRA
md5: 66f960ddb903a0e440eac2bcdabe8a15
duplicates:
Issue Description:
When I'm trying to compile the code:
I've got an error
Command failed due to signal: Segmentation fault: 11
If change
{code:none} protocol P where Self: Base {
the compiler works well
The text was updated successfully, but these errors were encountered: