From 3ee08cbce94a4e7e1ce668f06f5a612cd9f1e677 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Fri, 12 Nov 2021 12:58:49 +0100 Subject: Fix mapping of synthetic properties when overridden in Kotlin class In these cases, the getMethod of the property will not have a Psi element and we need to traverse up the overrides until we find one that does. --- src/testB/kotlin/pkg/Kt.kt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/testB/kotlin/pkg/Kt.kt (limited to 'src/testB/kotlin/pkg') diff --git a/src/testB/kotlin/pkg/Kt.kt b/src/testB/kotlin/pkg/Kt.kt new file mode 100644 index 0000000..7e75181 --- /dev/null +++ b/src/testB/kotlin/pkg/Kt.kt @@ -0,0 +1,12 @@ +package pkg + +import b.pkg.B + +class Kt : B() { + override fun getSyntheticB(): B { + return this + } + + override fun setSyntheticB(arg: B) { + } +} \ No newline at end of file -- cgit