Files
kotlin-fork/compiler/testData/ir/irText/expressions/extFunInvokeAsFun__builtinsmodule.txt
T
Dmitry Petrov e89047d2cc 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.
2018-02-28 10:35:13 +03:00

20 lines
1.3 KiB
Plaintext
Vendored

MODULE_FRAGMENT name:<built-ins module>
EXTERNAL_PACKAGE_FRAGMENT fqName:kotlin
CLASS IR_EXTERNAL_DECLARATION_STUB INTERFACE name:Function1 modality:ABSTRACT visibility:public flags:
superClasses:
UNBOUND: interface Function<out R>
TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:P1 index:0 variance:in upperBounds:[kotlin.Any?]
TYPE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:R index:1 variance:out upperBounds:[kotlin.Any?]
FUN IR_EXTERNAL_DECLARATION_STUB name:invoke visibility:public modality:ABSTRACT <> (p1:P1) returnType:R flags:
VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:p1 index:0 type:P1 flags:
FUN IR_EXTERNAL_DECLARATION_STUB name:equals visibility:public modality:OPEN <> (other:kotlin.Any?) returnType:Boolean flags:
overridden:
UNBOUND: fun equals(other: kotlin.Any?): kotlin.Boolean
VALUE_PARAMETER IR_EXTERNAL_DECLARATION_STUB name:other index:0 type:kotlin.Any? flags:
FUN IR_EXTERNAL_DECLARATION_STUB name:hashCode visibility:public modality:OPEN <> () returnType:Int flags:
overridden:
UNBOUND: fun hashCode(): kotlin.Int
FUN IR_EXTERNAL_DECLARATION_STUB name:toString visibility:public modality:OPEN <> () returnType:String flags:
overridden:
UNBOUND: fun toString(): kotlin.String