Files
2024-06-17 14:57:38 +02:00

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) {}