We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The built-in get-type does not work on a simple user defined type.
get-type
Run the following program with MeTTaLog
(: Shape Type) (: Box Shape) (: Attribute Type) (: MkShapeAttribute (-> Shape Attribute)) !(get-type (MkShapeAttribute Box))
[error [error [existence_error procedure [ / non_arg_violation_each 3 ]] [context [ / args_conform 4 ] $260]] [file /home/nilg/Work/SingularityNET/ai-dsl/experimental/ai-service-composition/english-to-chinese-song/bug.metta] (get-type (MkShapeAttribute Box))][
[Attribute]
The get-type calls on terms individually works, that is
!(get-type Shape) !(get-type Box) !(get-type Attribute) !(get-type MkShapeAttribute)
properly outputs
[Type] [Shape] [Type] [(-> Shape Attribute)]
It only fails when get-type is called on (MkShapeAttribute Box).
(MkShapeAttribute Box)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the problem?
The built-in
get-type
does not work on a simple user defined type.How to reproduce your problem?
Run the following program with MeTTaLog
What do you get?
What would you normally expect?
What else do you have to say?
The
get-type
calls on terms individually works, that isproperly outputs
It only fails when
get-type
is called on(MkShapeAttribute Box)
.The text was updated successfully, but these errors were encountered: