Skip to content

Commit 518d2d4

Browse files
committed
The ambiguous operator warnings should only be shown if $VERBOSE is true
1 parent a8fb2a7 commit 518d2d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/truffleruby/parser/lexer/RubyLexer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,11 @@ private ComplexParseNode newComplexNode(NumericParseNode number) {
122122
}
123123

124124
protected void ambiguousOperator(String op, String syn) {
125-
warnings.warn(
125+
warnings.warning(
126126
getFile(),
127127
getPosition().toSourceSection(src.getSource()).getStartLine(),
128128
"`" + op + "' after local variable or literal is interpreted as binary operator");
129-
warnings.warn(
129+
warnings.warning(
130130
getFile(),
131131
getPosition().toSourceSection(src.getSource()).getStartLine(),
132132
"even though it seems like " + syn);

0 commit comments

Comments
 (0)