Test for KT-2197 Reference to function is generated with private getter method
#KT-2197 fixed
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
trait A {
|
||||||
|
internal fun f() : Int
|
||||||
|
internal val v : Int
|
||||||
|
public var p : Int
|
||||||
|
}
|
||||||
|
|
||||||
|
class B : A {
|
||||||
|
override fun f(): Int = throw UnsupportedOperationException()
|
||||||
|
public override var p: Int = 0
|
||||||
|
override val v: Int = 0
|
||||||
|
}
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
namespace test
|
||||||
|
|
||||||
|
internal abstract trait test.A : jet.Any {
|
||||||
|
internal abstract fun f(): jet.Int
|
||||||
|
internal abstract val v: jet.Int
|
||||||
|
public abstract var p: jet.Int
|
||||||
|
}
|
||||||
|
internal final class test.B : test.A {
|
||||||
|
internal open override /*1*/ fun f(): jet.Int
|
||||||
|
internal open override /*1*/ val v: jet.Int
|
||||||
|
public final /*constructor*/ fun <init>(): test.B
|
||||||
|
public open override /*1*/ var p: jet.Int
|
||||||
|
}
|
||||||
+6
@@ -696,6 +696,12 @@ public class LazyResolveNamespaceComparingTestGenerated {
|
|||||||
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/type/Tuple0.kt");
|
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/type/Tuple0.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testInternalAbstractTraitMembersOverridden() throws Exception {
|
||||||
|
//TODO Disabled until lazy resolve supports inherited visibility (KT-2285)
|
||||||
|
//doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalAbstractTraitMembersOverridden.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testInternalClass() throws Exception {
|
public void testInternalClass() throws Exception {
|
||||||
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalClass.kt");
|
doTestSinglePackage("compiler/testData/readKotlinBinaryClass/visibility/InternalClass.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user