This commit is contained in:
Dustin Swan 2026-02-03 12:18:04 -07:00
parent d55ae33848
commit 5af3af6b6c
No known key found for this signature in database
GPG key ID: 30D46587E2100467

View file

@ -349,13 +349,9 @@ export class Parser {
expr = { kind: 'record-access', record: expr, field };
}
} else if (this.current().kind === 'open-brace') {
// if (expr.kind === 'constructor') {
// Function / constructor application
const record = this.parsePrimary();
expr = { kind: 'apply', func: expr, args: [record] };
// } else {
// break;
// }
// Function / constructor application
const record = this.parsePrimary();
expr = { kind: 'apply', func: expr, args: [record] };
} else {
break;
}