export class Type { constructor (func, obj) { this._func = func Object.assign(this, obj) } toString() { return this._func.name } } export function ConstString(size) { return new Type(ConstString, { _size: size }) } export function ConstArray(size) { return new Type(ConstArray, { _size: size }) }