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:
Andrey Breslav
2011-12-14 16:51:25 +04:00
committed by Nikolay Krasko
parent 09acc4d0da
commit 683e511cf3
13 changed files with 132 additions and 123 deletions
@@ -42,7 +42,7 @@ fun main(args : Array<String>) {
val b = fooT2<Int>()(1)
b : Int
<!TYPE_INFERENCE_FAILED!>fooT2()<!>(1) // : Any?
<!TYPE_INFERENCE_FAILED!>fooT2()<!>(<!ERROR_COMPILE_TIME_VALUE!>1<!>) // : Any?
<!CALLEE_NOT_A_FUNCTION!>1<!>()
<!CALLEE_NOT_A_FUNCTION!>1<!>{}
@@ -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)
}