JS: extract outer class reference as dispatchReceiver from ResolvedCall, to include it into UsageTracker mechanism. This allows to capture outer class of super class in local classes. See KT-13166
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// See KT-9246 IllegalAccessError when trying to access protected nested class from parent class
|
||||
// TARGET_BACKEND: JVM
|
||||
// FILE: a.kt
|
||||
|
||||
package a
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
open class Father(val param: String) {
|
||||
abstract inner class InClass {
|
||||
fun work(): String {
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
class A {
|
||||
open inner class Inner(val result: String)
|
||||
|
||||
|
||||
Vendored
-2
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
class A {
|
||||
open inner class Inner(val result: String = "OK", val int: Int)
|
||||
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
val capture = "oh"
|
||||
|
||||
|
||||
-2
@@ -1,5 +1,3 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
fun box(): String {
|
||||
class Local {
|
||||
open inner class Inner(val s: String) {
|
||||
|
||||
Reference in New Issue
Block a user