Last active
August 29, 2015 14:02
-
-
Save indragiek/0b163d8a1d998aa44ff6 to your computer and use it in GitHub Desktop.
Swift compiler segfault when accessing computed property on class extension
This file contains hidden or 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
struct SomeStruct { | |
let value: String | |
} | |
extension UIView { | |
var ind_someProperty: SomeStruct { | |
return SomeStruct(value: "Broken compiler") | |
} | |
} | |
var view = UIView(frame: CGRectZero) | |
view.ind_someProperty // Crashes the compiler | |
// <unknown>:0: error: unable to execute command: Segmentation fault: 11 | |
// <unknown>:0: error: swift frontend command failed due to signal (use -v to see invocation) | |
// Command /Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift failed with exit code 254 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
rdar://17409615, OpenRadar: http://www.openradar.me/radar?id=4588084989526016