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

Defining a function named "parse" fails in peculiar circumstances #10695

Closed
dcjones opened this issue Mar 31, 2015 · 1 comment
Closed

Defining a function named "parse" fails in peculiar circumstances #10695

dcjones opened this issue Mar 31, 2015 · 1 comment
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@dcjones
Copy link
Contributor

dcjones commented Mar 31, 2015

This is JuliaLang/JuliaParser.jl#18. Posting here because it's pretty clearly a julia bug.

This is as minimal a test case as I could find:

f() = 9223372036854775808

function parse() end
ERROR: LoadError: error in method definition: function Base.parse must be explicitly imported to be extended

The problem goes away if the f definition is removed, or if it doesn't return a huge integer.

@dcjones
Copy link
Contributor Author

dcjones commented Mar 31, 2015

Also the same issue: JuliaCI/Coverage.jl#54

@JeffBezanson JeffBezanson self-assigned this Mar 31, 2015
@JeffBezanson JeffBezanson added the bug Indicates an unexpected problem or unintended behavior label Mar 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants