[FIR] Exclude class type arguments checks for type parameters from outer functions

#KT-63577
This commit is contained in:
Evgeniy.Zhelenskiy
2024-01-18 06:19:55 +01:00
committed by Space Team
parent ff76837d35
commit dc578b1c5f
10 changed files with 70 additions and 1 deletions
@@ -0,0 +1,13 @@
// WITH_STDLIB
// FULL_JDK
fun <ItemType> setupListSpeedSearch() {
class MatchedItem(val item: ItemType)
class MatchedItem1<T>(val item: ItemType)
MatchedItem::class
MatchedItem::item
MatchedItem1::class
<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>MatchedItem1<!>::item
<!CLASS_LITERAL_LHS_NOT_A_CLASS!>MatchedItem1<Int>::class<!>
MatchedItem1<Int>::item
}
@@ -0,0 +1,13 @@
// WITH_STDLIB
// FULL_JDK
fun <ItemType> setupListSpeedSearch() {
class MatchedItem(val item: ItemType)
class MatchedItem1<T>(val item: ItemType)
<!CLASS_LITERAL_LHS_NOT_A_CLASS!>MatchedItem::class<!>
MatchedItem::item
MatchedItem1::class
<!WRONG_NUMBER_OF_TYPE_ARGUMENTS!>MatchedItem1<!>::item
<!CLASS_LITERAL_LHS_NOT_A_CLASS!>MatchedItem1<Int>::class<!>
MatchedItem1<Int>::item
}