aboutsummaryrefslogtreecommitdiff
path: root/src/test/kotlin/com/replaymod/gradle/remap/mapper
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/kotlin/com/replaymod/gradle/remap/mapper')
-rw-r--r--src/test/kotlin/com/replaymod/gradle/remap/mapper/kotlin/TestKotlinSyntheticProperties.kt13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/kotlin/com/replaymod/gradle/remap/mapper/kotlin/TestKotlinSyntheticProperties.kt b/src/test/kotlin/com/replaymod/gradle/remap/mapper/kotlin/TestKotlinSyntheticProperties.kt
index b77978a..20b65b9 100644
--- a/src/test/kotlin/com/replaymod/gradle/remap/mapper/kotlin/TestKotlinSyntheticProperties.kt
+++ b/src/test/kotlin/com/replaymod/gradle/remap/mapper/kotlin/TestKotlinSyntheticProperties.kt
@@ -141,4 +141,17 @@ class TestKotlinSyntheticProperties {
val v = B().b
""".trimIndent()
}
+
+ @Test
+ fun `remaps synthetic property even when overwritten in kotlin subclass`() {
+ TestData.remapKt("""
+ import pkg.Kt
+ val v = Kt().syntheticA
+ fun test() { Kt().syntheticA = Kt() }
+ """.trimIndent()) shouldBe """
+ import pkg.Kt
+ val v = Kt().syntheticB
+ fun test() { Kt().syntheticB = Kt() }
+ """.trimIndent()
+ }
}