Created
July 28, 2017 16:19
-
-
Save ezura/57c8372d94857d04e76d2deb5f0a32ae to your computer and use it in GitHub Desktop.
これなら、純粋な、実装だけの存在となれるかなぁ(。 ・ω・)) #swift #CodePiece
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
protocol P { var v: String { get } } | |
func f() -> P { | |
struct InnerType: P { | |
let v = "inner" | |
} | |
return InnerType() | |
} | |
f().v // inner |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment