Last active
June 21, 2019 02:40
-
-
Save AppleCEO/02a213b9a0e2002803fe26d68831b591 to your computer and use it in GitHub Desktop.
typealias example
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
| typealias MyInt = Int | |
| typealias YourInt = Int | |
| let age : MyInt = 10 // MyInt 는 Int 의 다른 이름입니다. | |
| let year : YourInt = 20 // YourInt 는 Int 의 다른 이름입니다. | |
| let sum : Int | |
| sum = year + age | |
| // result: 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment