[FIR] Exclude class type arguments checks for type parameters from outer functions
#KT-63577
This commit is contained in:
committed by
Space Team
parent
ff76837d35
commit
dc578b1c5f
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user