[AA] Consider context receivers in FirTowerDataElement.getAvailableScope

This commit is contained in:
aleksandrina-streltsova
2023-02-26 21:48:39 +02:00
committed by teamcity
parent 5996b41443
commit d89d774411
7 changed files with 56 additions and 5 deletions
@@ -0,0 +1,12 @@
// FILE: main.kt
package a.b.c
class A {
fun foo() {}
}
fun foo() = 1
context(A)
fun test() {
<expr>a.b.c.foo()</expr>
}
@@ -0,0 +1,5 @@
Before shortening: a.b.c.foo()
with DO_NOT_SHORTEN:
with SHORTEN_IF_ALREADY_IMPORTED:
with SHORTEN_AND_IMPORT:
with SHORTEN_AND_STAR_IMPORT: