Tests for showing synthetic methods in file structure view
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
public class TestSAM {
|
||||
public interface SamClass {
|
||||
void foo();
|
||||
}
|
||||
|
||||
void foo(SamClass samClass) {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
-InheritedSAMConversion.kt
|
||||
-KotlinTest
|
||||
clone(): Any location=→Object
|
||||
equals(Any?): Boolean location=→Object
|
||||
finalize(): Unit location=→Object
|
||||
foo((() -> Unit)?): Unit
|
||||
getClass(): Class<out Any?> location=→Object
|
||||
hashCode(): Int location=→Object
|
||||
notify(): Unit location=→Object
|
||||
notifyAll(): Unit location=→Object
|
||||
toString(): String location=→Object
|
||||
wait(): Unit location=→Object
|
||||
wait(Long): Unit location=→Object
|
||||
wait(Long, Int): Unit location=→Object
|
||||
@@ -0,0 +1,6 @@
|
||||
class KotlinTest : TestSAM
|
||||
|
||||
// TODO: Show both methods - synthetic and original (base mehtod without Kotlin signature)
|
||||
// TODO: Show location for synthetic method
|
||||
|
||||
// WITH_INHERITED
|
||||
@@ -0,0 +1,8 @@
|
||||
-InheritedSynthesizedFromDataClass.kt
|
||||
-Derived
|
||||
a: Int location=→TestData
|
||||
equals(Any?): Boolean location=→Any
|
||||
field: Int
|
||||
hashCode(): Int location=→Any
|
||||
some(): Unit location=→TestData
|
||||
toString(): String location=→Any
|
||||
@@ -0,0 +1,12 @@
|
||||
data open class TestData(val a: Int) {
|
||||
fun some() {}
|
||||
}
|
||||
|
||||
class Derived: TestData(1) {
|
||||
val field = component1()
|
||||
}
|
||||
|
||||
// TODO: show component1, component2 functions?
|
||||
// TODO: should equals and hashCode be shown as declared in TestData?
|
||||
|
||||
// WITH_INHERITED
|
||||
Reference in New Issue
Block a user