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

errors when using shared annotation #670

Open
ePaul opened this issue Oct 9, 2019 · 0 comments
Open

errors when using shared annotation #670

ePaul opened this issue Oct 9, 2019 · 0 comments

Comments

@ePaul
Copy link

ePaul commented Oct 9, 2019

The following code results in two underlined shared, with a tooltip message of

annotated program element does not satisfy annotation constraint
ValueDeclaration is not assignable to FunctionOrValueDeclaration|ClassOrInterfaceDeclaration|ConstructorDeclaration|Package|Import

class Person2b(String _firstName, String _lastName) {
    shared String firstName = _firstName;
    shared String lastName = _lastName;
}

(I know that this is a complicated way of writing this class, that's from a tutorial.)

The class and its properties can still be used in actually running code, so the error is just wrong.

This might be related to #660, which has the same error for a constructor.

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