SLC: mangle internal accessors
...by honoring accessors' visibility We need a special handling for backing field visibility, e.g., lateinit, const, or JvmField, but that's not the case for accessors' visibility. ^KT-64937 fixed
This commit is contained in:
+1
-6
@@ -103,12 +103,7 @@ internal class SymbolLightAccessorMethod private constructor(
|
|||||||
it.abiName()
|
it.abiName()
|
||||||
}
|
}
|
||||||
|
|
||||||
val visibility = if (!isGetter && propertySymbol.canHaveNonPrivateField)
|
propertySymbol.computeJvmMethodName(defaultName, outerClass, accessorSite, accessorSymbol.visibility)
|
||||||
accessorSymbol.visibility
|
|
||||||
else
|
|
||||||
propertySymbol.visibility
|
|
||||||
|
|
||||||
propertySymbol.computeJvmMethodName(defaultName, outerClass, accessorSite, visibility)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ public abstract interface A /* A*/ {
|
|||||||
|
|
||||||
public abstract int getInt2();// getInt2()
|
public abstract int getInt2();// getInt2()
|
||||||
|
|
||||||
public abstract void setInt2(int);// setInt2(int)
|
public abstract void setInt2$light_idea_test_case(int);// setInt2$light_idea_test_case(int)
|
||||||
}
|
}
|
||||||
|
|
||||||
public final class Foo /* Foo*/ {
|
public final class Foo /* Foo*/ {
|
||||||
|
|||||||
Reference in New Issue
Block a user