JVM IR: Ignore class type parameters if function is static
Otherwise, it leads to type parameters duplication in case of suspendImpls, since they inherit type parameters from containing class. #KT-56407: Fixed
This commit is contained in:
committed by
Space Team
parent
c7bc439661
commit
e42efe1ee6
@@ -192,6 +192,10 @@ val IrClass.typeConstructorParameters: Sequence<IrTypeParameter>
|
||||
// Ideally this should be fixed in FE.
|
||||
null
|
||||
}
|
||||
current is IrSimpleFunction && current.isStatic -> {
|
||||
// Static functions don't capture type parameters.
|
||||
null
|
||||
}
|
||||
current.isAnonymousObject -> {
|
||||
// Anonymous classes don't capture type parameters.
|
||||
null
|
||||
|
||||
Reference in New Issue
Block a user