Entity misspelled field names
entity Address {
name : String
}screen root() {
script {
var a = Address();
a.ame = “haha”;
}
header(“test”)
}If you enter a. it gives the correct list of available properties/methods but you could write a.whateveryouwant without any runtime error nor error from the compiler.
Submitted by Terje Pedersen on 11 May 2011 at 10:10
Issue Log
On 11 May 2011 at 14:23 Zef Hemel commented:
Will be fixed in 0.4.4.
On 11 May 2011 at 14:23 Zef Hemel closed this issue.
On 22 May 2011 at 18:29 Nils Beckmann commented:
i recently updated to the nightly build and since then the compiler in some cases gives me errors like:
Description Resource Path Location Type
Property status not defined on type model::Member WPWW.mobl /WPWW line 68 org.strategoxt.imp.runtime.analysismarkerthe line 68 is: mem.status = false;
entity Member {
name : String
number : Num
status : Bool
item : PersonItem (inverse: members)
}however, this exact code worked with the old version.
Log in to post comments