Community
Participate
Working Groups
Currently the return type is the actual type of the create expression. This may expose implementation detail. A workaround is to use a cast expression but that leads to a too generic type in the initializer expression. create MyType result: new MyTypeImpl() newMyType(String something) { result.setPropertyWhichIsNotInTheInterface(something); } This seems a little counter intuitive to me. Another option is: MyType create result: newTypeImpl(..) newMyType(String something) { .. } which would be more in line with the definition of other operations.
+1 for MyType create result: newTypeImpl(..) newMyType(String something) { .. }
Pushed to master.
Closing all bugs that were set to RESOLVED before Neon.0