ceylon icon indicating copy to clipboard operation
ceylon copied to clipboard

Trying to retrieve late attribute metamodel with `Set` type argument causes IncompatibleTypeException

Open fill0llif opened this issue 7 years ago • 0 comments

Trying to retrieve late attribute metamodel with Set type argument causes IncompatibleTypeException.

shared class Type() {
	shared late String attr;
}
shared void run() {
	assert (exists attr = `Type`.getAttribute<Type, String, String>("attr"));
}

The exception:

ceylon.language.meta.model.IncompatibleTypeException "Incompatible type: actual type of applied declaration is Attribute<Type,String,Nothing> is not compatible with expected type: Attribute<Type,String,String>. Try passing the type argument explicitly with: memberApply<Type,String,Nothing>()"

As @Zambonifofex already pointed out, on the Web IDE this is working fine.

fill0llif avatar Jan 23 '19 21:01 fill0llif