Created
September 2, 2022 21:39
-
-
Save s1monw1/d3f5b3a8350c8555c469c3dab49d8dc4 to your computer and use it in GitHub Desktop.
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
fun test(a: Int, printToConsole: Boolean = true) { | |
if (printToConsole) println("int a: " + a) | |
} | |
fun testWithoutPrint(a: Int) = test(a, false) | |
fun main(args: Array) { | |
testWithoutPrint(2) | |
test(2) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment