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
Mordil opened this issue
Mar 23, 2019
· 2 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.castingFeature: explicit casting (is, as, as? and as!)compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
The following code causes SourceKit crashes and builds generate a Seg Fault 11
protocolExample{}extensionInt:Example{}func useExample(_ input:[(Example,Double)]){
input.forEach{print($0)}}varexamples:[(Int,Double)]=[]
for index in 1...10{
examples.append((index, 0.0))}useExample(examples)
Switching
varexamples:[(Int,Double)]=[]
to
varexamples:[(Example,Double)]=[]
fixes the issue.
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.castingFeature: explicit casting (is, as, as? and as!)compilerThe Swift compiler in itselfcrashBug: A crash, i.e., an abnormal termination of software
Environment
macOS Mojave 10.14.4 Beta (18E220a)
Xcode 10.1 (10B61)
Apple Swift version 5.0-dev (LLVM 3207a50965, Clang 107de882f4, Swift 4d6e741)
Target: x86_64-apple-darwin18.5.0
Additional Detail from JIRA
md5: f5533e0bb91c26706faf32d1a1427fc8
duplicates:
Issue Description:
The following code causes SourceKit crashes and builds generate a Seg Fault 11
Switching
to
fixes the issue.
The text was updated successfully, but these errors were encountered: