Skip to content
New issue

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

Strange Error Message with Imported Function #826

Open
supercooldave opened this issue Jun 18, 2017 · 1 comment
Open

Strange Error Message with Imported Function #826

supercooldave opened this issue Jun 18, 2017 · 1 comment

Comments

@supercooldave
Copy link

The following code (which uses a new module, but I'm sure the bug applies to other modules):

import Data.Char

active class Main
  def main() : unit
    isdigit()
    -- should be isdigit('A')
  end
end

results in the odd error message:

 *** Error during typechecking *** 
"Bug.enc" (line 5, column 5)
Unknown namespace Data.Char
In expression: 
  isdigit()
In method 'main' of type 'unit'
In class 'Main

The problem is not that the namespace is unknown, but that the function is not provided with the correct number of arguments.

@EliasC
Copy link
Contributor

EliasC commented Jun 18, 2017

I think this is related to recently added support for default parameters. The same error appears even if the function is in the same module (but with an "empty" unknown namespace).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants