Type hint expressions must not be assignment expressions
This commit is contained in:
parent
49ee777c50
commit
efdb743c54
@ -943,7 +943,7 @@ static void typeHint(KrkToken name) {
|
||||
|
||||
/* Emit name */
|
||||
emitConstant(OBJECT_VAL(krk_copyString(name.start, name.length)));
|
||||
expression();
|
||||
parsePrecedence(PREC_TERNARY);
|
||||
|
||||
current = current->enclosed;
|
||||
current->enclosing->enclosed = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user