eclipse-archived / ceylon.formatter

A formatter for the Ceylon programming language, written in Ceylon.
Apache License 2.0
14 stars 11 forks source link

Unexpected token in ceylon.test #49

Closed lucaswerkmeister closed 10 years ago

lucaswerkmeister commented 10 years ago

@thradec is on fire today! :)

ceylon.language.Exception "Unexpected token '<', expected '(' instead" at ceylon.formatter.FormattingWriter$12.$call$(FormattingWriter.ceylon:623) at ceylon.formatter.FormattingWriter$12.$call$(FormattingWriter.ceylon:606) at ceylon.formatter.FormattingWriter.fastForward$priv$(FormattingWriter.ceylon:1101) at ceylon.formatter.FormattingWriter.writeToken$canonical$(FormattingWriter.ceylon:605) at ceylon.formatter.FormattingWriter.writeToken(FormattingWriter.ceylon:445) at ceylon.formatter.FormattingVisitor.visitPositionalArgumentList(FormattingVisitor.ceylon:1144) etc. etc. Generated by linkStacktrace

lucaswerkmeister commented 10 years ago
value callbacks = findCallbacks<BeforeTestAnnotation|AfterTestAnnotation>();

(here) – forgot that invocations can have type arguments.

lucaswerkmeister commented 10 years ago

No, the TypeArguments are actually part of the primary of the InvocationExpression, which is (in this case) a BaseMemberExpression.

lucaswerkmeister commented 10 years ago

GitHub seems slow to pick up the connection, so I’ll do it manually: fixed in fd15e21.