Created
February 14, 2020 10:26
-
-
Save emregoren/32d07a0da6fba189e73444430afd7091 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 main() { | |
val test = Test() | |
test.main() | |
} | |
class Test { | |
fun main() { | |
3 topla 5 | |
} | |
fun ekranaYaz(metin: String) { | |
return print(metin) | |
} | |
infix fun Int.topla(sayi: Int) { | |
fun ekranaYaz(metin: String) { | |
return println(metin) | |
} | |
val snc = this + sayi | |
this@Test.ekranaYaz("$snc") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment