For global variable declaration, suggest const
if let
is used instead
#100394
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code : link
The current output is:
Ideally the output should inform the user that
let
cannot be used to create global variables and suggest usingconst
instead. (Might need a little rephrasing).The text was updated successfully, but these errors were encountered: