Tests for additional lazy resolve (local classes/objects in class initializers)
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package test
|
||||
|
||||
open class A
|
||||
|
||||
class MyClass() {
|
||||
{
|
||||
val a = object: A() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//package test
|
||||
//internal open class A defined in test
|
||||
//public constructor A() defined in test.A
|
||||
//internal final class MyClass defined in test
|
||||
//public constructor MyClass() defined in test.MyClass
|
||||
//val a: test.MyClass.<init>.<no name provided> defined in test.MyClass.<init>
|
||||
//internal final class <no name provided> : test.A defined in test.MyClass.<init>
|
||||
//private constructor <no name provided>() defined in test.MyClass.<init>.<no name provided>
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
package test
|
||||
|
||||
open class A
|
||||
|
||||
class MyClass(
|
||||
a: A = object: A() {
|
||||
|
||||
}
|
||||
)
|
||||
|
||||
//package test
|
||||
//internal open class A defined in test
|
||||
//public constructor A() defined in test.A
|
||||
//internal final class MyClass defined in test
|
||||
//public constructor MyClass(a: test.A = ...) defined in test.MyClass
|
||||
//value-parameter val a: test.A = ... defined in test.MyClass.<init>
|
||||
//internal final class <no name provided> : test.A defined in test.MyClass.<init>
|
||||
//private constructor <no name provided>() defined in test.MyClass.<init>.<no name provided>
|
||||
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
open class A
|
||||
|
||||
class MyClass() {
|
||||
{
|
||||
class B: A() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//package test
|
||||
//internal open class A defined in test
|
||||
//public constructor A() defined in test.A
|
||||
//internal final class MyClass defined in test
|
||||
//public constructor MyClass() defined in test.MyClass
|
||||
//internal final class B : test.A defined in test.MyClass.<init>
|
||||
//public constructor B() defined in test.MyClass.<init>.B
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package test
|
||||
|
||||
open class A
|
||||
|
||||
class MyClass(
|
||||
a: A = run {
|
||||
class B: A() {
|
||||
|
||||
}
|
||||
|
||||
B()
|
||||
}
|
||||
)
|
||||
|
||||
//package test
|
||||
//internal open class A defined in test
|
||||
//public constructor A() defined in test.A
|
||||
//internal final class MyClass defined in test
|
||||
//public constructor MyClass(a: test.A = ...) defined in test.MyClass
|
||||
//value-parameter val a: test.A = ... defined in test.MyClass.<init>
|
||||
//internal final class B : test.A defined in test.MyClass.<init>.<anonymous>
|
||||
//public constructor B() defined in test.MyClass.<init>.<anonymous>.B
|
||||
@@ -0,0 +1,19 @@
|
||||
package test
|
||||
|
||||
open class A
|
||||
|
||||
class MyClass() {
|
||||
{
|
||||
object O: A() {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//package test
|
||||
//internal open class A defined in test
|
||||
//public constructor A() defined in test.A
|
||||
//internal final class MyClass defined in test
|
||||
//public constructor MyClass() defined in test.MyClass
|
||||
//internal object O : test.A defined in test.MyClass.<init>
|
||||
//private constructor O() defined in test.MyClass.<init>.O
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package test
|
||||
|
||||
open class A
|
||||
|
||||
class MyClass(
|
||||
a: A = run {
|
||||
object O: A() {
|
||||
|
||||
}
|
||||
|
||||
O
|
||||
}
|
||||
)
|
||||
|
||||
//package test
|
||||
//internal open class A defined in test
|
||||
//public constructor A() defined in test.A
|
||||
//internal final class MyClass defined in test
|
||||
//public constructor MyClass(a: test.A = ...) defined in test.MyClass
|
||||
//value-parameter val a: test.A = ... defined in test.MyClass.<init>
|
||||
//internal object O : test.A defined in test.MyClass.<init>.<anonymous>
|
||||
//private constructor O() defined in test.MyClass.<init>.<anonymous>.O
|
||||
Reference in New Issue
Block a user