Skip to content

Annotation on inner function definitions #33

Closed
@scabug

Description

@scabug

Aladdin: [http://scala-webapps.epfl.ch/bugtracking/contribs/display.do?id=767 contrib 767]

== Code ==

object test {
  def foo {
    @tailrec def bar(i: Int): Int = ...
    ...
  }
}

== What happened ==

error: illegal start of statement 

== What expected ==

There is obviously no use of such an annotation at runtime, but it would be very useful to be able to access it via the AST.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions