From a9edccaa836c0b9218fc9e4b32e75cc7e7ab424f Mon Sep 17 00:00:00 2001 From: kotlin-samples-pusher-bot Date: Mon, 18 Nov 2024 15:42:29 +0000 Subject: [PATCH] test(samples): add new samples --- .../this-expressions/b342b2aa84887281bafddfb28e77c5bd.1.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/test/resources/test-compile-data/jvm/kotlin-web-site/this-expressions/b342b2aa84887281bafddfb28e77c5bd.1.kt b/src/test/resources/test-compile-data/jvm/kotlin-web-site/this-expressions/b342b2aa84887281bafddfb28e77c5bd.1.kt index 5f3e5254a..8b9f69fe5 100644 --- a/src/test/resources/test-compile-data/jvm/kotlin-web-site/this-expressions/b342b2aa84887281bafddfb28e77c5bd.1.kt +++ b/src/test/resources/test-compile-data/jvm/kotlin-web-site/this-expressions/b342b2aa84887281bafddfb28e77c5bd.1.kt @@ -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") } @@ -12,6 +11,5 @@ fun main() { } A().invokePrintLine() // Member function - A().invokePrintLine(omitThis = true) // Top-level function -//sampleEnd() + A().invokePrintLine(omitThis = true) // Local function } \ No newline at end of file