#type 'X' is not assignable to type 'this' in class

2 messages · Page 1 of 1 (latest)

wheat thornBOT
#
andreaelektronvolt#0

Preview:ts import assert from "assert" interface Bounds { min: bigint max: bigint } export class BitSizedBigint { readonly #bits: number public readonly value: bigint readonly boundaries: Bounds constructor( bits: number, value: bigint, signed: boolean | Bounds ) { assert( bits > 0, "BitSizedBigint: bits must be greater than 0" ) this.#bits = bits this.value = value if (typeof signed === "boolean") { if (signed) ...

crystal jacinth
#

If I remember properly this used to work fine last time i used it.