Created
April 24, 2019 22:17
-
-
Save T-Pham/0a0c7bb543c91685bedd7944cd18240a to your computer and use it in GitHub Desktop.
M object
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 characters
@dynamicMemberLookup | |
@dynamicCallable | |
struct M { | |
subscript(dynamicMember member: String) -> M { | |
get { | |
return self | |
} | |
set { | |
} | |
} | |
func dynamicallyCall(withKeywordArguments: [String: Any?]) -> M { | |
return self | |
} | |
} | |
let m = M() | |
m.fsdfsdfsdf.3424234.2343(234, sdfsdfsd: "sdfsdf", sdfsdf: 324324234).23432.dfsdfsdf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment