Files
kotlin-fork/compiler/testData/ir/irText/declarations/contextReceivers/genericOuterClass.kt
T
Anastasiya Shadrina 3f50b675b1 [Tests] Add irText tests
2021-12-02 20:24:25 +03:00

13 lines
165 B
Kotlin
Vendored

// !LANGUAGE: +ContextReceivers
context(T) class A<T>
context(Collection<P>) class B<P>
fun Int.foo() {
A<Int>()
}
fun Collection<Int>.bar() {
B<Int>()
}