-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)
Description
This looks odd (this has now been fixed):
jjulia> sum.[1]
ERROR: MethodError: no method matching getproperty(::typeof(sum), ::Expr)
Closest candidates are:
getproperty(::Any, ::Symbol) at sysimg.jl:18
julia> Base.getproperty(::typeof(sum), ::Expr) = "Hello"
julia> sum.[1]
"Hello"
julia> foo() = sum.[1]
ERROR: syntax: invalid syntax sum.[1]Also (not fixed):
julia> sum.[1]
ERROR: MethodError: no method matching getproperty(::typeof(sum), ::Expr)
Closest candidates are:
getproperty(::Any, ::Symbol) at sysimg.jl:18
julia> Base.getproperty(::typeof(sum), ::Expr) = "Hello"
julia> sum.[1]
"Hello"
julia> foo() = sum.[1]
ERROR: syntax: invalid syntax sum.[1]Metadata
Metadata
Assignees
Labels
bugIndicates an unexpected problem or unintended behaviorIndicates an unexpected problem or unintended behaviorcompiler:loweringSyntax lowering (compiler front end, 2nd stage)Syntax lowering (compiler front end, 2nd stage)