Mangle function names with inline class parameters
Avoid name clashes in cases such as
inline class Login(val login: String)
inline class Password(val password: String)
fun validate(login: Login) { ... }
fun validate(password: Password) { ... }
This commit is contained in:
committed by
Ilya Gorbunov
parent
ff9ba97d66
commit
a56d1d3ce8
@@ -2058,6 +2058,16 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/checkOuterInlineFunctionCall.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("constructorWithInlineClassParametersIsNotMangled.kt")
|
||||
public void testConstructorWithInlineClassParametersIsNotMangled() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/constructorWithInlineClassParametersIsNotMangled.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("functionsWithInlineClassParametersHaveStableMangledNames.kt")
|
||||
public void testFunctionsWithInlineClassParametersHaveStableMangledNames() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/functionsWithInlineClassParametersHaveStableMangledNames.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("generationOfAccessorToUnderlyingValue.kt")
|
||||
public void testGenerationOfAccessorToUnderlyingValue() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/generationOfAccessorToUnderlyingValue.kt");
|
||||
@@ -2113,6 +2123,11 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/passInlineClassesWithSpreadOperatorToVarargs.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("propertySetterWithInlineClassTypeArgument.kt")
|
||||
public void testPropertySetterWithInlineClassTypeArgument() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/propertySetterWithInlineClassTypeArgument.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("skipCallToUnderlyingValueOfInlineClass.kt")
|
||||
public void testSkipCallToUnderlyingValueOfInlineClass() throws Exception {
|
||||
runTest("compiler/testData/codegen/bytecodeText/inlineClasses/skipCallToUnderlyingValueOfInlineClass.kt");
|
||||
|
||||
Reference in New Issue
Block a user