Files
kotlin-fork/compiler/testData/diagnostics/tests/extensions/contextReceivers/genericOuterClass.kt
T

17 lines
267 B
Kotlin
Vendored

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