Skip to content

Instantly share code, notes, and snippets.

@capnslipp
Last active July 23, 2016 00:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capnslipp/c166e3fb51112f0c6551d5ea3626b2bb to your computer and use it in GitHub Desktop.
Save capnslipp/c166e3fb51112f0c6551d5ea3626b2bb to your computer and use it in GitHub Desktop.
Swift struct private init() test
public struct GlobalsStruct {
public static let aValue = 5
private init() {}
}
import Foundation
let gs = GlobalsStruct()
print(gs)
print(GlobalsStruct.aValue)
print(gs.dynamicType.aValue)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment