test for obsolete task
#KT-1358 fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
//KT-1358 Overload resolution ambiguity with autocast and generic function
|
||||
package d
|
||||
|
||||
fun bar(a: Any?) {
|
||||
if (a != null) {
|
||||
a.foo() //overload resolution ambiguity
|
||||
a.sure() //overload resolution ambiguity
|
||||
}
|
||||
}
|
||||
|
||||
fun <T : Any> T?.foo() {}
|
||||
Reference in New Issue
Block a user