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
Sep 12, 2018
· 2 comments
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
Happens when the marked line is added, with the following error:
1. While emitting SIL for getter for wrappedView at /Users/asdfgh1/tmp/SwiftBug/SwiftBug/Bug.swift:18:14
2. While silgen emitFunction SIL function "@$S8SwiftBug26ReusableCollectionViewCellC07wrappedE0xvg".
for getter for wrappedView at /Users/asdfgh1/tmp/SwiftBug/SwiftBug/Bug.swift:18:14
3. While silgen closureexpr SIL function "@$S8SwiftBug26ReusableCollectionViewCellC07wrappedE0xvgxyXEfU_".
for expression at [/Users/asdfgh1/tmp/SwiftBug/SwiftBug/Bug.swift:18:34 - line:27:5] RangeText="{
let view: View
if let NibView = View.self as? NibLoadable.Type {
view = NibView.instantiateFromNib() as! View
} else {
view = View(frame: .zero)
}
// ...
return view
}"
error: Illegal instruction: 4
Please find the test project attached.
The text was updated successfully, but these errors were encountered:
It seems to work on master, so I'm going to put this into the bucket of "constraining to a protocol to a particular class type using where clauses was mostly unimplemented in Swift 4.2 and shouldn't have been allowed yet". You can get nearly the same effect by moving the where Self: UIView to the protocol extension and then casting to (UIView & NibLoadable).Type.
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
Attachment: Download
Environment
MacOS 10.13.6
Xcode 10 beta 6
Additional Detail from JIRA
md5: a5ddac2b086e227cf5b8602b57ce1fd6
duplicates:
Issue Description:
Happens every time while compiling this:
Happens when the marked line is added, with the following error:
Please find the test project attached.
The text was updated successfully, but these errors were encountered: