Changing an argument the record shares, then never reading it
The complete source of structure_person_alias_unread.ek9, which fails to compile exactly as captioned. Shown on structure.html.
Fails with E08090: is not referenced anywhere, or not referenced after assignment
#!ek9 defines module bad.site.structure.personaliasunread defines record Person first as String: String() default Person() Person() -> first as String this.first: first override operator ? as pure <- rtn as Boolean: first? operator $ as pure <- rtn as String: first defines program ChangedButNeverRead() stdout <- Stdout() firstName <- "John" smithj <- Person(firstName) firstName += " Jr" stdout.println(smithj)
Download structure_person_alias_unread.ek9 - it fails to compile on purpose, with the error its @Error line states.