[FIR] Report UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL

^KT-59969 Fixed
This commit is contained in:
Nikolay Lunyak
2023-08-03 10:22:32 +03:00
committed by Space Team
parent 906c27736f
commit 7151e6a41c
9 changed files with 19 additions and 44 deletions
@@ -29,11 +29,11 @@ fun useWithContextReceivers() {
with(42) {
with("") {
f({}, 42)
sameAsFWithoutNonContextualCounterpart({}, 42)
p
val a = A()
a.p
a.m()
<!UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL!>sameAsFWithoutNonContextualCounterpart<!>({}, 42)
<!UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL!>p<!>
val a = <!UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL!>A<!>()
a.<!UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL!>p<!>
a.<!UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL!>m<!>()
}
}
}