Created
May 7, 2019 14:10
-
-
Save superarts/19ca0f92b10ef01b268e3b6f4a00afb2 to your computer and use it in GitHub Desktop.
`static func` in `struct` is not pure
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
struct TestStruct { | |
static var staticVar = 1 | |
static func staticFunc() { | |
staticVar = 2 | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment