File tree Expand file tree Collapse file tree 3 files changed +1
-8
lines changed
src/main/java/org/truffleruby/parser/parser Expand file tree Collapse file tree 3 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ Bug fixes:
61
61
* Fixed enumeration issue in ` ENV.{select, filter} ` .
62
62
* Fixed ` Complex ` and ` Rational ` should be frozen after initializing.
63
63
* Fixed ` printf ` should raise error when not enough arguments for positional argument.
64
+ * Removed "shadowing outer local variable" warning.
64
65
65
66
Compatibility:
66
67
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -1494,13 +1494,6 @@ public String shadowing_lvar(String name) {
1494
1494
if (current .exists (name ) >= 0 ) {
1495
1495
yyerror ("duplicated argument name" );
1496
1496
}
1497
-
1498
- if (warnings .isVerbose () && current .isDefined (name ) >= 0 ) {
1499
- warnings .warning (
1500
- file ,
1501
- lexer .getPosition ().toSourceSection (lexer .getSource ()).getStartLine (),
1502
- "shadowing outer local variable - " + name );
1503
- }
1504
1497
} else if (current .exists (name ) >= 0 ) {
1505
1498
yyerror ("duplicated argument name" );
1506
1499
}
You can’t perform that action at this time.
0 commit comments