Revisions
-
josephlord revised this gist
Jan 19, 2015 . 1 changed file with 10 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,14 @@ private var privateGlobalFoo = 42 class Foo { class var foo: Int { get { return privateGlobalFoo } set(newVal) { privateGlobalFoo = newVal } } } println(Foo.foo) Foo.foo = 114 println(Foo.foo) -
neonichu created this gist
Jan 19, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ class Foo { class var foo: Int { return 42 } } println(Foo.foo)