aboutsummaryrefslogtreecommitdiff
path: root/test/playground.kt
diff options
context:
space:
mode:
Diffstat (limited to 'test/playground.kt')
-rw-r--r--test/playground.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/playground.kt b/test/playground.kt
index ca503791..b401ac63 100644
--- a/test/playground.kt
+++ b/test/playground.kt
@@ -50,6 +50,9 @@ object Object {
/** one line getter doc */
get() = "Member"
+ val String.valueWithReceiver: Int
+ get() = 1
+
}
class OuterClass {
@@ -60,6 +63,9 @@ class OuterClass {
class NestedClass<T> {
fun nestedClassFunction(item: T) {
}
+
+ fun String.functionWithReceiver(): Int = 1
+
}
inner class InnerClass {
@@ -67,7 +73,7 @@ class OuterClass {
/** doc for R1 type param */
R1,
/** doc for R2 type param */
- R2,
+ R2
>() {
}
}