[K2] Disappeared UNSUPPORTED_FEATURE (3)

Added a check for the enabled context receivers feature flag for @ContextFunctionTypeParams.

^KT-59913
This commit is contained in:
Anastasia.Nekrasova
2023-11-07 14:55:55 +02:00
committed by Space Team
parent c04767f1f4
commit fb0461f422
3 changed files with 19 additions and 5 deletions
@@ -1,5 +0,0 @@
fun <T> f(t: @ContextFunctionTypeParams(42) T, tt: @ContextFunctionTypeParams(1) Int) {}
fun test() {
val f: @ContextFunctionTypeParams(1) @ExtensionFunctionType (Int, String) -> Unit = {}
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
fun <T> f(t: <!UNSUPPORTED_FEATURE!>@ContextFunctionTypeParams(42)<!> T, tt: <!UNSUPPORTED_FEATURE!>@ContextFunctionTypeParams(1)<!> Int) {}
fun test() {