improved error reporting

when error type is a generic parameter
This commit is contained in:
Svetlana Isakova
2012-12-24 15:51:05 +04:00
parent 19e6b02da8
commit 4089ac68bd
3 changed files with 15 additions and 2 deletions
@@ -0,0 +1,9 @@
package a
fun <T, R, S> foo(block: (T)-> R, <!UNUSED_PARAMETER!>second<!>: (T)-> S) = block
fun main(args: Array<String>) {
val fff = { (x: Int) -> <!UNRESOLVED_REFERENCE!>aaa<!> }
foo(<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>fff<!>, { x -> x + 1 })
}