You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class Example() {
shared late Integer i;
}
print(type(`Example.i`));
prints com.redhat.ceylon.compiler.java.runtime.metamodel::AppliedAttribute<example::Example,ceylon.language::Integer,Nothing>, so the Setter type parameter of Attribute is Nothing. This means I cannot call set() on the bound Value<Integer,Nothing> I obtain from that Attriibute.
If I try to use setIfAssignable() I get an exception "Value is not mutable".
This makes late attributes pretty much unusable from the metamodel.
The text was updated successfully, but these errors were encountered:
Some way of assigning to non-variablelate attributes will be necessary in order to implement dependency injection in Ceylon. Constructor injection isn't always an option.
prints
com.redhat.ceylon.compiler.java.runtime.metamodel::AppliedAttribute<example::Example,ceylon.language::Integer,Nothing>
, so the Setter type parameter of Attribute is Nothing. This means I cannot callset()
on the boundValue<Integer,Nothing>
I obtain from thatAttriibute
.If I try to use
setIfAssignable()
I get an exception "Value is not mutable".This makes
late
attributes pretty much unusable from the metamodel.The text was updated successfully, but these errors were encountered: