platform icon indicating copy to clipboard operation
platform copied to clipboard

Improve the semantic error when += to non-abstract

Open danchanka opened this issue 7 years ago • 0 comments

The erroneous code:

CLASS Chat;
someAbstractProperty = DATA VARSTRING[100] (Chat);  // not abstract
someProperty = DATA VARSTRING[100] (Chat);
someAbstractProperty(Chat chat) += someProperty(chat);

At the moment, the error text is "property 'someAbstractProperty' not found.". It would be better to have "You can += only to abstract property" or "Property 'someAbstractProperty' is not abstract".

Related issue: lsfusion/plugin-idea#25

danchanka avatar Jul 04 '18 14:07 danchanka