Skip to content

Strange parser error message for "x".3 #53330

Open
@llbit

Description

@llbit

The expression "x".3 gives the following error message in the REPL:

julia> "x".3
ERROR: cannot document the following expression:

0.3

This is strange because 0.3 is not the original expression and inconsistent compared to the error for "x".y which is more readable:

julia> "x".y
ERROR: type String has no field y

Could this be updated to be more consistent between the two errors?

Versioninfo:

Julia Version 1.10.0
Commit 3120989f39b (2023-12-25 18:01 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 PRO 4750U with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver2)
  Threads: 1 on 16 virtual cores

Metadata

Metadata

Assignees

No one assigned

    Labels

    error messagesBetter, more actionable error messagesparserLanguage parsing and surface syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions