Do not generate set methods for NTA children

Issue #200 resolved
Jesper Öqvist
created an issue

It should not be possible to set a value for an NTA child. For example:

syn nta Opt<B> A.getBOpt() = new Opt();


A a = new A();
a.setBOpt(new Opt<B>(new B()));

The setBOpt method in the above example should not be generated. Instead the developer can write:

a.setB(new B());

This is both safer and more concise.

Comments (2)

  1. Log in to comment