tridactyl/compiler/types/VoidType.ts
2019-03-31 13:30:47 +02:00

20 lines
349 B
TypeScript

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