[fine] Fix block compilation

This commit is contained in:
John Doty 2024-01-14 19:18:54 -08:00
parent 1eb7da77fc
commit 40d611ae37
3 changed files with 83 additions and 30 deletions

View file

@ -1,10 +1,34 @@
{}
fun test() {
{}
}
// @no-errors
// @type: 0 ()
// @compiles-to:
// | function test (0 args, 0 locals):
// | strings (0):
// | code (2):
// | 0: PushNothing
// | 1: Return
// | function << module >> (0 args, 0 locals):
// | strings (0):
// | code (2):
// | 0: PushNothing
// | 1: Return
// |
// @eval: Nothing
// @type: 15 ()
// @concrete:
// | File
// | Block
// | LeftBrace:'"{"'
// | RightBrace:'"}"'
// | FunctionDecl
// | Fun:'"fun"'
// | Identifier:'"test"'
// | ParamList
// | LeftParen:'"("'
// | RightParen:'")"'
// | Block
// | LeftBrace:'"{"'
// | Block
// | LeftBrace:'"{"'
// | RightBrace:'"}"'
// | RightBrace:'"}"'
// |