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

wrongly overloading "getproperty" crashes REPL #26528

Closed
longqian95 opened this issue Mar 20, 2018 · 2 comments
Closed

wrongly overloading "getproperty" crashes REPL #26528

longqian95 opened this issue Mar 20, 2018 · 2 comments

Comments

@longqian95
Copy link
Contributor

julia> versioninfo()
Julia Version 0.7.0-DEV.4625
Commit 57cbdf9 (2018-03-18 09:35 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, skylake)
Environment:

julia> Base.getproperty(t,f::Symbol) = nothing

fatal: error thrown and no exception handler available.
MethodError(f=typeof(Base.start)(), args=(nothing,), world=0x0000000000006a11)

@fredrikekre
Copy link
Member

See #20945, #22132, #23605, #21944, #24078, #24122, #25208, #26438

@KristofferC
Copy link
Member

KristofferC commented Mar 20, 2018

This is type piracy; destroying methods used by Julia will destroy Julia.

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

3 participants