Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

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

Open
fill0llif opened this issue Jan 23, 2019 · 0 comments

Comments

@fill0llif
Copy link

fill0llif commented Jan 23, 2019

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 fill0llif changed the title Setting late attribute's value through metamodel causes IncompatibleTypeException Trying to retrieve late attribute metamodel with Set type argument causes IncompatibleTypeException Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant