Last active
October 20, 2018 22:28
-
-
Save cprovatas/75e290996eaee447e2bc75fa2ccf54bb to your computer and use it in GitHub Desktop.
Revisions
-
cprovatas revised this gist
Oct 20, 2018 . No changes.There are no files selected for viewing
-
cprovatas revised this gist
Oct 20, 2018 . 1 changed file with 0 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,4 +1,3 @@ protocol TypeReflectable { var `Self`: Self.Type { get } static var `Self`: Self.Type { get } -
cprovatas created this gist
Oct 20, 2018 .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,15 @@ protocol TypeReflectable { var `Self`: Self.Type { get } static var `Self`: Self.Type { get } } extension TypeReflectable { var `Self`: Self.Type { return type(of: self) } static var `Self`: Self.Type { return self } }