Files
2023-08-21 12:11:58 +00:00

15 lines
413 B
Kotlin
Vendored

<!CONFLICTING_OVERLOADS!>fun takeString(s: String)<!> {}
class Wrapper(val s: String?) {
fun withThis() {
if (s != null) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>takeString<!>(this.s) // Should be OK
}
if (this.s != null) {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>takeString<!>(s) // Should be OK
}
}
}
<!CONFLICTING_OVERLOADS!>fun takeString(s: String)<!> {}