[FIR] Consider default values from expect function during serialization

It's not possible to unmute some tests for K2 because it causes testData structure changing

If change testData, NATIVE doesn't work even with `IGNORE_BACKEND`
This commit is contained in:
Ivan Kochurkin
2023-02-16 22:20:29 +01:00
committed by Space Team
parent d87619e06e
commit f1fef62f76
5 changed files with 20 additions and 24 deletions
@@ -116,3 +116,7 @@ inline val FirBasedSymbol<*>.isJavaOrEnhancement: Boolean
get() = origin.isJavaOrEnhancement ||
(fir as? FirCallableDeclaration)?.importedFromObjectOrStaticData?.original?.isJavaOrEnhancement == true
fun FirFunctionSymbol<*>?.containsDefaultValue(index: Int): Boolean {
if (this == null) return false
return this.fir.valueParameters[index].defaultValue != null
}