fa77e3952d
#KT-61159 Fixed
15 lines
413 B
Kotlin
Vendored
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)<!> {}
|