Skip to content

Nullary function application does not get proper type #300

@ngeiswei

Description

@ngeiswei

What is your problem?

Calling get-type on a nullary function application returns empty.

How to reproduce your problem?

Run the following MeTTa code with MeTTaLog

(: foo (-> Number))
!(get-type (foo))

What should normally be expected?

[Number]

What do you get instead?

[]

What else do you have to say?

  • !(get-type foo) outputs the correct type, thus the problem is specifically with (foo).
  • Tested on revision 225d221.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssues that represent errors in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions