diff options
Diffstat (limited to 'src/test/kotlin/com/replaymod/gradle/remap')
-rw-r--r-- | src/test/kotlin/com/replaymod/gradle/remap/mapper/TestMixinAnnotation.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/kotlin/com/replaymod/gradle/remap/mapper/TestMixinAnnotation.kt b/src/test/kotlin/com/replaymod/gradle/remap/mapper/TestMixinAnnotation.kt index 1f9a3a2..595b65f 100644 --- a/src/test/kotlin/com/replaymod/gradle/remap/mapper/TestMixinAnnotation.kt +++ b/src/test/kotlin/com/replaymod/gradle/remap/mapper/TestMixinAnnotation.kt @@ -49,4 +49,15 @@ class TestMixinAnnotation { class MixinA { @Shadow private int bField; } """.trimIndent() } + + @Test + fun `remaps with anonymous inner class target`() { + TestData.remap(""" + @org.spongepowered.asm.mixin.Mixin(targets = "a.pkg.A${'$'}1") + class MixinA {} + """.trimIndent()) shouldBe """ + @org.spongepowered.asm.mixin.Mixin(targets = "b.pkg.B${'$'}1") + class MixinA {} + """.trimIndent() + } }
\ No newline at end of file |