ceylon icon indicating copy to clipboard operation
ceylon copied to clipboard

Setting late attribute's value through non type-safe metamodel causes NPE

Open fill0llif opened this issue 7 years ago • 0 comments

Setting late attribute's value through non type-safe metamodel causes NPE.

shared class Type() {
	shared late String attr;
}
shared void run() {
	`value Type.attr`.memberSet(Type(), "test");
}

As shown also in #7443, it seems 'Type.attr' is actually an Attribute<Type,String,Nothing>, but it should be an Attribute<Type,String,String>.

fill0llif avatar Jan 23 '19 22:01 fill0llif