Generate super classes and overridden functions in proper scope

Such references require proper scope so that local symbols are bound.
Example:

```
fun <T> outer() {
    abstract class ALocal<S : T> {
        abstract fun bar()
    }

    class Local<S : T> : ALocal<S>() {
        override fun bar() {}
    }
}
```

Here local classes have type parameters with upper bounds depending on
function type parameters, and members overriding members in other local
classes.
This commit is contained in:
Dmitry Petrov
2018-02-22 10:00:02 +03:00
parent 8fef0f0535
commit e89047d2cc
54 changed files with 2463 additions and 79 deletions
+7
View File
@@ -0,0 +1,7 @@
FILE fqName:<root> fileName:/javaMethod.kt
FUN name:test visibility:public modality:FINAL <> (j:J) returnType:Unit flags:
VALUE_PARAMETER name:j index:0 type:J flags:
BLOCK_BODY
RETURN type=kotlin.Nothing from='test(J): Unit'
CALL 'bar(): Unit' type=kotlin.Unit origin=null
$this: GET_VAR 'value-parameter j: J' type=J origin=null