Fix an error message.
This commit is contained in:
+1
-1
@@ -2381,7 +2381,7 @@ static void classDefinition(Compiler* compiler)
|
|||||||
compiler->fields = &fields;
|
compiler->fields = &fields;
|
||||||
|
|
||||||
// Compile the method definitions.
|
// Compile the method definitions.
|
||||||
consume(compiler, TOKEN_LEFT_BRACE, "Expect '}' after class body.");
|
consume(compiler, TOKEN_LEFT_BRACE, "Expect '{' after class body.");
|
||||||
while (!match(compiler, TOKEN_RIGHT_BRACE))
|
while (!match(compiler, TOKEN_RIGHT_BRACE))
|
||||||
{
|
{
|
||||||
Code instruction = CODE_METHOD_INSTANCE;
|
Code instruction = CODE_METHOD_INSTANCE;
|
||||||
|
|||||||
Reference in New Issue
Block a user