Skip to content

Commit

Permalink
test(samples): add new samples
Browse files Browse the repository at this point in the history
  • Loading branch information
kotlin-samples-pusher-bot committed Nov 18, 2024
1 parent 6b328de commit a9edcca
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
fun main() {
//sampleStart
fun printLine() { println("Top-level function") }
fun printLine() { println("Local function") }

class A {
fun printLine() { println("Member function") }
Expand All @@ -12,6 +11,5 @@ fun main() {
}

A().invokePrintLine() // Member function
A().invokePrintLine(omitThis = true) // Top-level function
//sampleEnd()
A().invokePrintLine(omitThis = true) // Local function
}

0 comments on commit a9edcca

Please sign in to comment.