Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concerto 1.1 does not handle type references in decorators #313

Closed
jeromesimeon opened this issue Aug 12, 2021 · 0 comments · Fixed by #315
Closed

Concerto 1.1 does not handle type references in decorators #313

jeromesimeon opened this issue Aug 12, 2021 · 0 comments · Fixed by #315
Assignees
Labels
Type: Bug 🐛 Something isn't working

Comments

@jeromesimeon
Copy link
Member

Bug Report 🐛

Although poorly documented, there is a way to use a type reference as the argument in a decorator. For instance:

namespace test

@MyDecorator(Foo) // Foo is the type name
// @MyOtherDecorator(Bar) // Bar is the type name but it does not exist
concept Foo {}

The new support for conversions between CTO files and their AST instances of the concerto metamodel does not handle those decorators.

Expected Behavior

Decorators containing arguments which are type references should be handled (and name-resolved if requested) properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Something isn't working
Projects
None yet
1 participant