Fixing parsing when we have a b {}. that should be applying a to b and {}. instead it was applying b to {}
This commit is contained in:
parent
a9e10b3123
commit
4626616b14
2 changed files with 2 additions and 6 deletions
|
|
@ -364,10 +364,6 @@ export class Parser {
|
|||
const field = (fieldToken as { value: string }).value;
|
||||
expr = { kind: 'record-access', record: expr, field };
|
||||
}
|
||||
} else if (this.current().kind === 'open-brace') {
|
||||
// Function / constructor application
|
||||
const record = this.parsePrimary();
|
||||
expr = { kind: 'apply', func: expr, args: [record] };
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue