Last active
August 29, 2015 14:13
-
-
Save NeoTeo/545128f724cd47d84ee1 to your computer and use it in GitHub Desktop.
Crashes compiler with "Global is external, but doesn't have external or weak linkage!"
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
| import Cocoa | |
| class foo { | |
| var baz = false | |
| func test() { | |
| var bar: Int = 1 { | |
| didSet { | |
| if baz == true && bar == 2 { | |
| println("baz") | |
| } | |
| } | |
| } | |
| } | |
| } |
Author
Author
Removing either baz == true && or && bar == 2 makes it all happy again.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The full error text: