How to Override Schema Fields in Effect Typescript

Is it possible to override Schema fields? For example:
export class A extends Schema.Class<A>("A")({
  a: Schema.Struct({
    x: Schema.String
  }),
  b: Schema.String
}) {}

export class B extends A.extend<B>("B")({
  a: Schema.Struct({
    x: Schema.String,
    y: Schema.String
  }),
  b: Schema.String
}) {}

https://effect.website/play#878c6e0b7957

But this approach results in the following error:
Error: Duplicate property signature
details: Duplicate key "a"
Was this page helpful?