Disambiguate the names and trap labels of backing fields of extension properties

This commit is contained in:
Chris Smowton
2022-05-27 16:26:51 +01:00
parent 6eb2935469
commit 9ea139566d
5 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
| |
| <clinit> |
| A |
| B |
| get |
| getX |
| invoke |
| x$delegatepackagename$$subpackagename$$A |
| x$delegatepackagename$$subpackagename$$B |

View File

@@ -0,0 +1,7 @@
package packagename.subpackagename
public class A { }
public class B { }
val A.x : String by lazy { "HelloA" }
val B.x : String by lazy { "HelloB" }

View File

@@ -0,0 +1,5 @@
import java
from Class c
where c.fromSource()
select c.getAMember().toString()