diff --git a/spec/truffle/parsing/fixtures/warnings.yaml b/spec/truffle/parsing/fixtures/warnings.yaml index 986ff6ede3e..e49b7c07ca9 100644 --- a/spec/truffle/parsing/fixtures/warnings.yaml +++ b/spec/truffle/parsing/fixtures/warnings.yaml @@ -15,7 +15,7 @@ ast: | EmitWarningsNode attributes: flags = 0 - warnings = RubyDeferredWarnings(WarningMessage(message = 'ambiguous `*` has been interpreted as an argument prefix', verbosity = NON_VERBOSE, fileName = '', lineNumber = 1)) + warnings = RubyDeferredWarnings(WarningMessage(message = 'ambiguous `*` has been interpreted as an argument prefix', verbosity = VERBOSE, fileName = '', lineNumber = 1)) WriteLocalVariableNode attributes: flags = 0 diff --git a/src/main/java/org/truffleruby/parser/YARPTranslatorDriver.java b/src/main/java/org/truffleruby/parser/YARPTranslatorDriver.java index 8997c6e6ab3..3f51aee68a9 100644 --- a/src/main/java/org/truffleruby/parser/YARPTranslatorDriver.java +++ b/src/main/java/org/truffleruby/parser/YARPTranslatorDriver.java @@ -479,7 +479,7 @@ public static org.prism.ParseResult parseToYARPAST(RubyContext context, RubyLang SourceSection section = rubySource.getSource().createSection(location.startOffset, location.length); int lineNumber = RubySource.getStartLineAdjusted(context, section); - rubyWarnings.warn(filename, lineNumber, warning.message); + rubyWarnings.warning(filename, lineNumber, warning.message); } if (errors.length != 0) {