1
0

type.ts 306 B

1234567891011121314
  1. import { IType } from "./itype";
  2. export class Type implements IType {
  3. constructor(public value: String, public ord: number) { }
  4. stringInfo () {
  5. return [{type: this.value, dim: 0}];
  6. }
  7. isCompatible (another: IType) {
  8. return this.value === another.value && this.ord === another.ord;
  9. }
  10. }