Added test on callable reference to property

This commit is contained in:
Igor Chevdar
2017-05-23 16:36:04 +03:00
parent 560822fca0
commit 6116f24abc
2 changed files with 17 additions and 0 deletions
+5
View File
@@ -796,6 +796,11 @@ task propertyCallableReference_linkTest(type: LinkKonanTest) {
lib = "codegen/propertyCallableReference/linkTest_lib.kt"
}
task propertyCallableReference_dynamicReceiver(type: RunKonanTest) {
goldValue = "42\n"
source = "codegen/propertyCallableReference/dynamicReceiver.kt"
}
task lateinit_initialized(type: RunKonanTest) {
goldValue = "zzz\n"
source = "codegen/lateinit/initialized.kt"
@@ -0,0 +1,12 @@
class Test {
var x: Int = 42
}
fun foo(): Test {
println(42)
return Test()
}
fun main(args: Array<String>) {
foo()::x
}