Last active
August 29, 2015 14:05
-
-
Save stigi/336a9851cd80fdef22ed to your computer and use it in GitHub Desktop.
swift compiler bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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