aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/comments/directive.kt
blob: b27f5a482f0d00b95e5b3b35fe708e5975132c54 (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
/**
 * Summary
 *
 * @sample example1
 * @sample example2
 * @sample X.example3
 * @sample X.Y.example4
 */
val property = "test"

fun example1(node: String) = if (true) {
    println(property)
}

fun example2(node: String) {
    if (true) {
        println(property)
    }
}

class X {
    fun example3(node: String) {
        if (true) {
            println(property)
        }
    }

    class Y {
        fun example4(node: String) {
            if (true) {
                println(property)
            }
        }
    }
}