String interpolation - javac error when referencing properties/functions of "this" twice in single expression
The
multipleRefsInParentheses
function in:entity Tmp { name : String i : Int n : Tmp function get: String { return name; } function interpInEntity: String{ return "~i~this.i~n~this.n~this.n.n~get()~this.get()"; } derived : String := "~i~this.i~n~this.n~this.n.n~get()~this.get()" function navfun: String { log(navigate( navfun( this ) )); return "~navigate( navfun( this ) )"; } function multipleRefsInParentheses() : String{ return "bla: ~(n == null || get() == "")"; } }
results in:
Submitted by Elmer van Chastelet on 18 January 2024 at 15:50.servletapp/src-generated/webdsl/generated/domain/Tmp.java:354: error: variable this_ is already defined in method c$1(Tmp,Tmp) private static String c$1(webdsl.generated.domain.Tmp this_,webdsl.generated.domain.Tmp this_){
Issue Log
On 24 January 2024 at 16:02 Danny Groenewegen commented:
https://github.com/webdsl/webdsl/commit/3376898fbdb7989a403209fca7591f8947722bba
On 24 January 2024 at 16:02 Danny Groenewegen closed this issue.
Log in to post comments