eclipse-archived / ceylon

The Ceylon compiler, language module, and command line tools
http://ceylon-lang.org
Apache License 2.0
399 stars 62 forks source link

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

Open fill0llif opened 5 years ago

fill0llif commented 5 years ago

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>.