|
|
Re: [acceleo] let =null [message #1756436 is a reply to message #1756427] |
Thu, 16 March 2017 20:27   |
louis andia. Messages: 47 Registered: November 2016 |
Member |
|
|
Thanks you for your answer.
Yes it's look like they is a similarity between these bugs.
OclAny works but it's not perfect. You have to use oclAsType every time you want to use it, and code is less readable.
If you have any documentation about Pivot-based OCL i take it, but i doubt acceleo let using it.
In fact, you have a warning when you try to affect null value directly, but using just a if statement and it disappear:
1) Warning "Possible incompatible type between 'String' and 'OclVoid'."
[let var: String = null]
[/let]
2) No warning
[let var: String = if true then null else '' endif]
[/let]
[Updated on: Thu, 16 March 2017 20:28] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02528 seconds