2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
19 lines
340 B
Kotlin
Vendored
19 lines
340 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
interface JPAEntityClass<D> {
|
|
fun <T> T.findByName(s: String): D {null!!}
|
|
}
|
|
|
|
class Foo {
|
|
companion object : JPAEntityClass<Foo>
|
|
}
|
|
|
|
fun main() {
|
|
with("", {
|
|
<!ARGUMENT_TYPE_MISMATCH!>Foo.<!UNRESOLVED_REFERENCE!>findByName<!>("")<!>
|
|
})
|
|
with(Foo) {
|
|
findByName("")
|
|
}
|
|
}
|