aboutsummaryrefslogtreecommitdiff
path: root/test/playground.kt
blob: 136995d194d170f5380b4a80f463356c28d251e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// this file is not included in sources or tests, you can play with it for debug purposes
// Console run configuration will analyse it and provide lots of debug output

fun topLevelFunction() {
}

val topLevelConstantValue = "Hello"

val topLevelValue : String
    get() = "Bye bye"

var topLevelVariable : String
    get() = "Modify me!"
    set(value) {
    }

class Class {
    fun memberFunction() {
    }

}

object Object {
    fun objectFunction() {
    }
}

class OuterClass {

    class NestedClass {
        fun nestedClassFunction() {
        }
    }

    inner class InnerClass {
        fun innerClassFunction() {
        }
    }

    object NestedObject {
        fun nestedObjectFunction() {
        }
    }
}