tree-sitter / tree-sitter-scala

Scala grammar for tree-sitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lambda expression with semicolon

eed3si9n opened this issue · comments

Commit of tree-sitter-scala you tested this on

b3ac6a5

A code sample showing the error

TypeTreeWithDeferredRefCheck() { () => val tp = qual.tpe; val sym = tp.typeSymbolDirect
  1
}

val l1 = { () => val x = 1; 2 }

Show the error node

          (val_definition
            (identifier)
            (block
              (lambda_expression
                (bindings)
                (infix_expression
                  (identifier)
                  (identifier)
                  (operator_identifier)))
              (ERROR
                (integer_literal))
              (integer_literal))))))

What do you expect the tree to look like

No response

Where are you experiencing this error?

No response