Scala 2 team issues. Not for user-facing bugs or directly actionable user-facing improvements. For build/test/infra and for longer-term planning and idea tracking. Our bug tracker is at https://github.com/scala/bug/issues
Apache License 2.0
130
stars
14
forks
source link
Partest doesn't report warnings if multi-round compilation #829
ought to report the warnings which show the code is not valid.
I tried to tweak it to at least put warnings in the transcript under --verbose.
% scalac t7253/test.scala
% WARNINGS!
% test.scala:14: warning: method without a parameter list overrides a method with a single empty one
def show: Unit = {
^
test.scala:28: warning: comparing values of types Int and String using `==` will always yield false
(opcode == "INVOKEVIRTUAL") || (opcode == "INVOKEINTERFACE")
^
test.scala:28: warning: comparing values of types Int and String using `==` will always yield false
(opcode == "INVOKEVIRTUAL") || (opcode == "INVOKEINTERFACE")
^
Problem
Posting a ticket as reminder to return to this later.
Alternatively, partest DirectCompiler could turn on -Werror, perhaps under --verbose.
Reproduction steps
Scala version: 2.13.10
ought to report the warnings which show the code is not valid.
I tried to tweak it to at least put warnings in the transcript under
--verbose
.Problem
Posting a ticket as reminder to return to this later.
Alternatively, partest
DirectCompiler
could turn on-Werror
, perhaps under--verbose
.