Refactor retrieving DataType's name

This commit is contained in:
2020-03-14 13:18:01 +01:00
parent eb893c28f3
commit d8744670ed
13 changed files with 97 additions and 93 deletions

View File

@@ -9,7 +9,7 @@ import io.smnp.type.model.Value
class TypeOfFunction : Function("typeOf") {
override fun define(new: FunctionDefinitionTool) {
new function simple(allTypes()) body { _, (obj) ->
Value.string(obj.type.toString()) // TODO
Value.string(obj.typeName)
}
}
}