K2: Delete failing test for KT-55555
It appeared again after 2b3f34cc52
And still needs some investigation
^KT-55555 Open
This commit is contained in:
committed by
Space Team
parent
14418a31ac
commit
d84490dcfa
@@ -1,24 +0,0 @@
|
||||
FILE: kt55555.kt
|
||||
private abstract interface Foo : R|kotlin/Any| {
|
||||
}
|
||||
private final class Bar<T : R|Foo|, L : R|kotlin/collections/List<T>|> : R|kotlin/Any| {
|
||||
public constructor<T : R|Foo|, L : R|kotlin/collections/List<T>|>(): R|Bar<T, L>| {
|
||||
super<R|kotlin/Any|>()
|
||||
}
|
||||
|
||||
}
|
||||
private final fun <T : R|Foo|> bar(t: R|T|): R|Bar<T, *>| {
|
||||
^bar Null(null)!!
|
||||
}
|
||||
private final fun <T : R|Foo|> foo(t: R|T|): R|T| {
|
||||
lval map: R|Bar<T, *>| = when () {
|
||||
(R|<local>/t| is R|Bar<*, *>|) -> {
|
||||
(R|<local>/t| as R|Bar<T, *>|)
|
||||
}
|
||||
else -> {
|
||||
R|/bar|<R|T|>(R|<local>/t|)
|
||||
}
|
||||
}
|
||||
|
||||
^foo R|<local>/t|
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
// ISSUE: KT-55555
|
||||
|
||||
private interface Foo
|
||||
|
||||
private class Bar<T : Foo, L : List<T>>
|
||||
|
||||
private fun <T : Foo> bar(t: T): Bar<T, *> = null!!
|
||||
|
||||
private fun <T : Foo> foo(t: T): T {
|
||||
val map =
|
||||
if (t is Bar<*, *>) t <!UNCHECKED_CAST!>as Bar<T, *><!>
|
||||
else bar(t)
|
||||
return t
|
||||
}
|
||||
Reference in New Issue
Block a user