Files
kotlin-fork/compiler/testData/diagnostics/tests/overload/onlyPrivateOverloadsDiagnostic.kt
T
2017-06-22 13:41:28 +03:00

13 lines
204 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_PARAMETER
class A {
private fun foo(i: Int) {}
private fun foo(s: String) {}
}
fun test(a: A) {
a.<!INVISIBLE_MEMBER!>foo<!>(3)
a.<!NONE_APPLICABLE!>foo<!>()
}