mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
c2fa72571f
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.
7 lines
141 B
TypeScript
7 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
|
|
}
|