[FIR] Fix type constraint for type parameter ^KT-45345 Fixed

This commit is contained in:
Ivan Kochurkin
2021-10-06 21:48:56 +03:00
parent a0fb60f201
commit 2e1f455d9c
9 changed files with 69 additions and 30 deletions
@@ -22,7 +22,7 @@ class Case1<AT>(val x: AT) {
when (k) {
is AT -> {
k checkType { <!NONE_APPLICABLE!>check<!><AT>() }
k checkType { check<AT>() }
}
}
}
@@ -31,7 +31,7 @@ class Case1<AT>(val x: AT) {
val k: AT = x!!
if (k is AT) {
k checkType { <!NONE_APPLICABLE!>check<!><AT>() }
k checkType { check<AT>() }
}
}
}