Skip to content

Instantly share code, notes, and snippets.

@emregoren
Created February 14, 2020 10:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emregoren/32d07a0da6fba189e73444430afd7091 to your computer and use it in GitHub Desktop.
Save emregoren/32d07a0da6fba189e73444430afd7091 to your computer and use it in GitHub Desktop.
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