Test for calling functions in initializers.

Adapted from https://github.com/develar/kotlin/commit/a9e0a42fb1347fa8e21c86b5a073ef8a7c873da0.
This commit is contained in:
Pavel V. Talanov
2012-08-13 16:03:36 +04:00
parent d734cbb5b5
commit 0a002bcc53
2 changed files with 14 additions and 3 deletions
@@ -0,0 +1,9 @@
package foo
class A()
private val doInit = {
A()
}()
fun box(): Boolean = doInit is A