KT-7597 ErrorType leaked into backend

#KT-7597 Fixed
This commit is contained in:
Svetlana Isakova
2015-04-28 13:38:58 +03:00
parent f4dd685bbe
commit 02301a0d70
7 changed files with 81 additions and 11 deletions
@@ -0,0 +1,10 @@
// !CHECK_TYPE
trait Inv<I>
fun <S, T: S> Inv<T>.reduce2(): S = null!!
fun test(a: Inv<Int>): Int {
val b = 1 <!OVERLOAD_RESOLUTION_AMBIGUITY!>+<!> a.reduce2()
return <!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>b<!>
}