[IR] Rewrite logic around object interpretation

Basically we want to allow object interpretation only when we try
to access some const val property.

#KT-57810 Fixed
This commit is contained in:
Ivan Kylchik
2023-04-07 23:50:57 +02:00
committed by Space Team
parent 5956e9b500
commit 1ddcdcfc39
4 changed files with 16 additions and 6 deletions
@@ -6,7 +6,7 @@
object Test {
fun foo(): String = "foo " + this
fun bar(): String = "bar $this"
fun bar(): String = "<!EVALUATED("bar ")!>bar <!>$this"
fun baz(): String = "baz " + this.toString()
}