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

9 lines
267 B
Plaintext

// PROBLEM: "Use of getter method instead of property access syntax"
// COMPILER_ARGUMENTS: -XXLanguage:+ReferencesToSyntheticJavaProperties
import java.util.function.Function
fun main() {
funFunction(Foo::foo)
}
fun funFunction(function: Function<Foo, Int>) {}