Extraction Engine: Support references to synthetic properties

This commit is contained in:
Alexey Sedunov
2015-09-15 15:45:28 +03:00
parent 0fbcf0b958
commit 0a32e5a96d
5 changed files with 43 additions and 4 deletions
@@ -0,0 +1,6 @@
import org.jetbrains.annotations.NotNull;
interface Named {
@NotNull
String getName();
}
@@ -0,0 +1,6 @@
// WITH_RUNTIME
// PARAM_DESCRIPTOR: private final fun Named.foo(): [org.jetbrains.annotations.NotNull] String defined in Test
// PARAM_TYPES: Named
public class Test {
private fun Named.foo() = <selection>name</selection>
}
@@ -0,0 +1,8 @@
// WITH_RUNTIME
// PARAM_DESCRIPTOR: private final fun Named.foo(): [org.jetbrains.annotations.NotNull] String defined in Test
// PARAM_TYPES: Named
public class Test {
private fun Named.foo() = s()
private fun Named.s() = name
}