Test on link stage.
This commit is contained in:
@@ -681,6 +681,12 @@ task propertyCallableReference_varExtension(type: RunKonanTest) {
|
||||
source = "codegen/propertyCallableReference/varExtension.kt"
|
||||
}
|
||||
|
||||
task propertyCallableReference_linkTest(type: LinkKonanTest) {
|
||||
goldValue = "42\n117\n"
|
||||
source = "codegen/propertyCallableReference/linkTest_main.kt"
|
||||
lib = "codegen/propertyCallableReference/linkTest_lib.kt"
|
||||
}
|
||||
|
||||
task array0(type: RunKonanTest) {
|
||||
goldValue = "5\n6\n7\n8\n9\n10\n11\n12\n13\n"
|
||||
source = "runtime/collections/array0.kt"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
package a
|
||||
|
||||
class A(val x: Int)
|
||||
@@ -0,0 +1,9 @@
|
||||
import a.A
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val p1 = A::x
|
||||
println(p1.get(A(42)))
|
||||
val a = A(117)
|
||||
val p2 = a::x
|
||||
println(p2.get())
|
||||
}
|
||||
Reference in New Issue
Block a user