tree-sitter-scala icon indicating copy to clipboard operation
tree-sitter-scala copied to clipboard

Lambda expression with semicolon

Open eed3si9n opened this issue 1 year ago • 0 comments

Commit of tree-sitter-scala you tested this on

b3ac6a5d959d3137e7f3146d4d9f7899872177de

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

eed3si9n avatar Mar 13 '24 04:03 eed3si9n