fixed bug in renderer for violated upper bound error
This commit is contained in:
committed by
Andrey Breslav
parent
c3ff6a2430
commit
4657a4b271
+10
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user