tridactyl/compiler/types/VoidType.ts
2019-04-14 10:27:22 +02:00

18 lines
327 B
TypeScript

import { Type } from "./Type"
export class VoidType implements Type {
public static instance = new VoidType()
public kind = "void"
public toConstructor() {
return "VoidType.instance"
}
public toString() {
return this.kind
}
public convert(argument) {
return null
}
}