OverloadResolutionResult is returned from CallResolver instead of descriptors. This makes more information availbale to the caller (useful for better diagnostics).
This commit is contained in:
committed by
Nikolay Krasko
parent
09acc4d0da
commit
683e511cf3
@@ -1,9 +1,9 @@
|
||||
fun fooT2<T>() : fun(t : T) : T {
|
||||
return {it}
|
||||
fun fooT22<T>() : T? {
|
||||
return null
|
||||
}
|
||||
|
||||
fun foo1() {
|
||||
<!TYPE_INFERENCE_FAILED!>fooT22()<!>
|
||||
}
|
||||
|
||||
val n : Nothing = null.sure()
|
||||
|
||||
fun test() {
|
||||
<!TYPE_INFERENCE_FAILED!>fooT2()<!>(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user