Refactor retrieving DataType's name
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user