tree-sitter / tree-sitter-scala

Scala grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lambdas with implicit params

susliko opened this issue · comments

Commit of tree-sitter-scala you tested this on

374709c

A code sample showing the error

object A:
  val f = { a => implicit b => b }

Show the error node

(compilation_unit [0, 0] - [4, 0]
  (object_definition [0, 0] - [4, 0]
    name: (identifier [0, 7] - [0, 8])
    body: (template_body [0, 8] - [4, 0]
      (val_definition [1, 2] - [1, 34]
        pattern: (identifier [1, 6] - [1, 7])
        value: (block [1, 10] - [1, 34]
          (lambda_expression [1, 12] - [1, 32]
            parameters: (identifier [1, 12] - [1, 13])
            (ERROR [1, 17] - [1, 25]
              (modifiers [1, 17] - [1, 25]))
            (lambda_expression [1, 26] - [1, 32]
              parameters: (identifier [1, 26] - [1, 27])
              (identifier [1, 31] - [1, 32]))))))))

What do you expect the tree to look like

No response

Where are you experiencing this error?

FlagOps.scala