eclipse-archived/ceylon-ide-intellij

errors when using shared annotation

ePaul opened this issue · 0 comments

ePaul commented

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.