fixed bug in renderer for violated upper bound error

This commit is contained in:
Svetlana Isakova
2013-12-24 14:52:58 +04:00
committed by Andrey Breslav
parent c3ff6a2430
commit 4657a4b271
4 changed files with 22 additions and 2 deletions
@@ -0,0 +1,10 @@
package g
import java.util.HashSet
fun <T, C: Collection<T>> convert(src: Collection<T>, dest: C): C = throw Exception("$src $dest")
fun test(l: List<Int>) {
//todo should be inferred
val r = <!TYPE_INFERENCE_UPPER_BOUND_VIOLATED!>convert<!>(l, <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>HashSet<!>())
<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>r<!>: Int
}