'superConstructorCall' test folder moved under 'innerNested'
This commit is contained in:
+2
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
// When inner class extends its outer, there are two instances of the outer present in the inner:
|
||||
// the enclosing one and the one in the super call.
|
||||
// Here we test that symbols are resolved to the instance created via the super call.
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
class A {
|
||||
open inner class Inner(val result: String)
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
class A {
|
||||
open inner class Inner(val result: String = "OK", val int: Int)
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
val capture = "oh"
|
||||
|
||||
+2
@@ -1,3 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
class Local {
|
||||
open inner class Inner(val s: String) {
|
||||
Reference in New Issue
Block a user