Files
codeql/java/ql/test/kotlin/library-tests/inherited-single-abstract-method/test.kt
Chris Smowton e80254b0a6 Fix generated implementation of an inherited single abstract method
For example, UnaryOperator<T> extends Function<T, T> without overriding / defining its own `apply` method.
2022-05-19 20:57:54 +01:00

10 lines
109 B
Kotlin

import java.util.function.UnaryOperator
fun f(x: UnaryOperator<String>) { }
fun test() {
f({x -> x})
}