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:
Alexey Andreev
2016-12-14 14:07:10 +03:00
parent 87f4e53544
commit c82f8213b0
8 changed files with 41 additions and 13 deletions
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
open class Father(val param: String) {
abstract inner class InClass {
fun work(): String {
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
class A {
open inner class Inner(val result: String)
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
class A {
open inner class Inner(val result: String = "OK", val int: Int)
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
fun box(): String {
val capture = "oh"
@@ -1,5 +1,3 @@
// TARGET_BACKEND: JVM
fun box(): String {
class Local {
open inner class Inner(val s: String) {