CANNOT_INFER_PARAMETER_TYPE reporting improvement

This commit is contained in:
Svetlana Isakova
2012-12-24 15:26:28 +04:00
parent 2077faa76a
commit 19e6b02da8
3 changed files with 25 additions and 1 deletions
@@ -0,0 +1,16 @@
package aa
fun <T, R> foo(block: (T)-> R) = block
fun test1() {
<!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>foo<!> {
<!CANNOT_INFER_PARAMETER_TYPE!>x<!> -> // here we have 'cannot infer parameter type' error
43
}
}
fun bar(<!UNUSED_PARAMETER!>f<!>: (<!UNRESOLVED_REFERENCE!>A<!>)->Unit) {}
fun test2() {
bar { a -> } // here we don't have 'cannot infer parameter type' error
}