oxc/tasks/coverage/misc/pass/oxc-5177.ts
DonIsaac c2fa72571f feat(ast,parser): parse TSTypeAnnotations on AccessorProperty (#5179)
Closes #5177

While making this, I noticed an uncaught parse error for accessors: accessors cannot be optional. I'll add a fix for this in an up-stack PR.
2024-08-25 01:02:48 +00:00

6 lines
141 B
TypeScript

// https://github.com/oxc-project/oxc/issues/5177
type Foo = 'foo' | 'bar'
export class Bang {
accessor x: Foo
accessor y!: string
}