Skip to content

Instantly share code, notes, and snippets.

@stigi
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stigi/336a9851cd80fdef22ed to your computer and use it in GitHub Desktop.
Save stigi/336a9851cd80fdef22ed to your computer and use it in GitHub Desktop.
swift compiler bug
import Foundation
println("Hello, World!")
class Test {
class func foo (string:String = "test") {
println("fooz " + string)
}
}
Test.foo() // "fooz test"
let bar = Test.foo
bar(string:"barz") // "fooz barz"
bar() // SourceKitService terminates & swiftc build failes with exit code 254
import Foundation
println("Hello, World!")
func foo (string:String = "test") {
println("fooz " + string)
}
foo() // "fooz test"
let bar = foo
bar(string:"barz") // "fooz barz"
bar() // SourceKitService terminates & swiftc build failes with exit code 254
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment