Skip to content

Don't show const value in error message #11789

@Wh1teDuke

Description

@Wh1teDuke

Test

const FOO = 1
let   BAR = 2
add(FOO, BAR)

Expected
expression: add(FOO, BAR)

Got
expression: add(1, BAR)

Related: #6293


>nim -v
Nim Compiler Version 0.20.99 [Linux: i386]
Compiled at 2019-07-18
Copyright (c) 2006-2019 by Andreas Rumpf

git hash: 4becd5a2a8d67c7481af457d5007e1a313d454c8
active boot switches: -d:release

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions