aboutsummaryrefslogtreecommitdiff
path: root/test/data/comments/directive.kt
blob: 9883b7bd634b30f6d976a5fec66ec7b1fd76941c (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
 *
 * ${code example1}
 * ${code example2}
 * ${code X.example3}
 * ${code 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)
            }
        }
    }
}