ceylon-ide-intellij icon indicating copy to clipboard operation
ceylon-ide-intellij copied to clipboard

errors when using shared annotation

Open ePaul opened this issue 6 years ago • 0 comments

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.

ePaul avatar Oct 09 '19 20:10 ePaul