Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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