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
airspeedswift opened this issue
Oct 8, 2019
· 0 comments
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 softwarekey pathsFeature: key paths (both native and Objective-C)
But if you put just the print statement in a file and compile it, you get a compiler assertion:
Assertion failed: (![](getDeclContext()->isLocalContext() && "not a global variable)"), function isLazilyInitializedGlobal, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/AST/Decl.cpp, line 5145.
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 softwarekey pathsFeature: key paths (both native and Objective-C)
Attachment: Download
Additional Detail from JIRA
md5: e8450ec3a3722197aa362f1da612fc7b
Issue Description:
On recent toolchain, this code compiles:
func f() {
print(["hello","world"].map(.count))
}
But if you put just the print statement in a file and compile it, you get a compiler assertion:
Assertion failed: (![](getDeclContext()->isLocalContext() && "not a global variable)"), function isLazilyInitializedGlobal, file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swift/lib/AST/Decl.cpp, line 5145.
The text was updated successfully, but these errors were encountered: