[PSI2IR] Support context receivers on classes
This commit is contained in:
committed by
TeamCityServer
parent
307f318c9e
commit
aaabf5e1ca
@@ -0,0 +1,10 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
|
||||
context(T) class B<T : CharSequence> {
|
||||
val result = if (length == 2) "OK" else "fail"
|
||||
}
|
||||
|
||||
fun box() = with("OK") {
|
||||
B().result
|
||||
}
|
||||
Reference in New Issue
Block a user