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

Invalid error on default type arguments #1772

Open
bjansen opened this issue Apr 23, 2016 · 1 comment
Open

Invalid error on default type arguments #1772

bjansen opened this issue Apr 23, 2016 · 1 comment
Milestone

Comments

@bjansen
Copy link
Contributor

bjansen commented Apr 23, 2016

In ceylon-ide-common, we have this interface:

shared interface AbstractTerminateStatementAction<Document=DefaultDocument>
        given Document satisfies CommonDocument {
...

And an implementation for unit tests:

class TerminateStatementActionTest()
        satisfies AbstractTerminateStatementAction<> {

Everything builds fine in the CLI, but I get these errors in Eclipse:

Description Resource Path Location Type
Some classes are missing from the generated module archives, probably because of an error in the Java backend compilation. The detail of missing classes is given in the Information markers. ceylon-ide-common Unknown Ceylon Backend Error
could not determine type of method or attribute reference: 'terminateStatement' of 'TestTerminateStatementAction' TerminateStatementActionTest.ceylon /ceylon-ide-common/test-source/test/com/redhat/ceylon/ide/common/editor line 50 Ceylon Error
type of parameter 'doc' of 'parse' declared by 'TestTerminateStatementAction' is different to type of corresponding parameter 'doc' of refined member 'parse' of 'AbstractTerminateStatementAction': type cannot be determined TerminateStatementActionTest.ceylon /ceylon-ide-common/test-source/test/com/redhat/ceylon/ide/common/editor line 64 Ceylon Error

The error goes away if I specify an explicit type argument:

class TerminateStatementActionTest()
        satisfies AbstractTerminateStatementAction<DefaultDocument> {
@bjansen bjansen added this to the 1.2.3 milestone Apr 23, 2016
@gavinking
Copy link
Contributor

One for you, @davidfestal.

@davidfestal davidfestal modified the milestones: 1.3.1, 1.3.0 Oct 3, 2016
@bjansen bjansen modified the milestones: 1.3.1, 1.3.2 Dec 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants