I encountered an interesting bug here in OrbitalElements.jl. Essentially, writing r[1] returned r because r was a number (a Float64 specifically). This also works when writing numbers directly: you can write 42[1]. r[:] doesn’t work however.
I would expect this to result in an error, as it is most likely a programming error, and can’t see cases where it would be useful. Maybe it is consistent with eachindex(42) being Base.OneTo(1) ?