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
|
||||
}
|
||||
Reference in New Issue
Block a user