mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
This commit fixes tests that get broken after https://jetbrains.team/p/kt/reviews/16557/timeline GitOrigin-RevId: 28c19f8ef408c26da61a147631eaa904b2b56ae0
14 lines
340 B
Kotlin
14 lines
340 B
Kotlin
// FIX: Use property access syntax
|
|
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
|
|
fun test(t: Thread) {
|
|
take { t.name } // works
|
|
|
|
take(t::<caret>getName)
|
|
take(t::name) // should work, should be no warnings
|
|
}
|
|
|
|
fun interface MyStringSupplier {
|
|
fun doStuff(): String
|
|
}
|
|
|
|
fun take(s: MyStringSupplier) {} |