38 lines
271 B
Kotlin
Vendored
38 lines
271 B
Kotlin
Vendored
package bar
|
|
|
|
@DslMarker
|
|
annotation class Dsl
|
|
|
|
|
|
@Dsl
|
|
class R {
|
|
fun foo1(i: Int) {
|
|
|
|
}
|
|
|
|
@Dsl
|
|
fun foo2(i : Int) {
|
|
|
|
}
|
|
|
|
val foo5: Int = 6
|
|
@Dsl
|
|
val foo6: Int = 7
|
|
|
|
|
|
}
|
|
|
|
fun r(body: R.() -> Unit) {
|
|
|
|
}
|
|
|
|
|
|
@Dsl
|
|
fun R.foo4() {
|
|
|
|
}
|
|
|
|
@Dsl
|
|
fun R.foo3() {
|
|
|
|
} |