Skip to content

Instantly share code, notes, and snippets.

@indragiek
Last active August 29, 2015 14:02
Show Gist options
  • Save indragiek/0b163d8a1d998aa44ff6 to your computer and use it in GitHub Desktop.
Save indragiek/0b163d8a1d998aa44ff6 to your computer and use it in GitHub Desktop.
Swift compiler segfault when accessing computed property on class extension
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
@indragiek
Copy link
Author

@nickynick
Copy link

@indragiek Did you find a workaround, perhaps? This issue is bugging me too :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment