Created
April 26, 2020 08:13
-
-
Save gyugyu90/ff9e05815b5c5fc4414219916b029bc9 to your computer and use it in GitHub Desktop.
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
val PI = 3.14 // 최상위 레벨 변수 | |
var x = 0 | |
fun incrementX() { | |
x += 1 | |
} | |
fun main() { | |
var x = 5 // 'Int' 타입이 추론됨 | |
x += 1 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment