Extraction Engine: Properly retrieve declaration for overriden/delegated Java synthetic properties
#KT-9554 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
interface Named {
|
||||
@NotNull
|
||||
String getName();
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// WITH_RUNTIME
|
||||
// PARAM_DESCRIPTOR: private final fun NamedEx.foo(): [@org.jetbrains.annotations.NotNull] String defined in Test
|
||||
// PARAM_TYPES: NamedEx
|
||||
// SIBLING:
|
||||
public class Test {
|
||||
private fun NamedEx.foo() = <selection>name</selection>
|
||||
}
|
||||
|
||||
public class NamedEx : Named by object : Named {
|
||||
override fun getName(): String = "foo"
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
// WITH_RUNTIME
|
||||
// PARAM_DESCRIPTOR: private final fun NamedEx.foo(): [@org.jetbrains.annotations.NotNull] String defined in Test
|
||||
// PARAM_TYPES: NamedEx
|
||||
// SIBLING:
|
||||
public class Test {
|
||||
private fun NamedEx.foo() = s()
|
||||
}
|
||||
|
||||
private fun NamedEx.s() = name
|
||||
|
||||
public class NamedEx : Named by object : Named {
|
||||
override fun getName(): String = "foo"
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
interface Named {
|
||||
@NotNull
|
||||
String getName();
|
||||
}
|
||||
|
||||
interface NamedEx extends Named {
|
||||
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// WITH_RUNTIME
|
||||
// PARAM_DESCRIPTOR: private final fun NamedEx.foo(): [@org.jetbrains.annotations.NotNull] String defined in Test
|
||||
// PARAM_TYPES: NamedEx
|
||||
// SIBLING:
|
||||
public class Test {
|
||||
private fun NamedEx.foo() = <selection>name</selection>
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// WITH_RUNTIME
|
||||
// PARAM_DESCRIPTOR: private final fun NamedEx.foo(): [@org.jetbrains.annotations.NotNull] String defined in Test
|
||||
// PARAM_TYPES: NamedEx
|
||||
// SIBLING:
|
||||
public class Test {
|
||||
private fun NamedEx.foo() = s()
|
||||
}
|
||||
|
||||
private fun NamedEx.s() = name
|
||||
Reference in New Issue
Block a user