Files
kotlin-fork/idea/testData/inspectionsLocal/removeRedundantQualifierName/notApplicableExpression4.kt
T
2019-06-24 15:17:10 +07:00

14 lines
227 B
Kotlin
Vendored

// PROBLEM: none
package foo
class Foo {
fun test() {
<caret>foo.myRun {
42
}
}
}
inline fun <R> myRun(block: () -> R): R = block()
inline fun <T, R> T.myRun(block: T.() -> R): R = block()