Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partest doesn't report warnings if multi-round compilation #829

Open
som-snytt opened this issue Jan 24, 2023 · 0 comments
Open

Partest doesn't report warnings if multi-round compilation #829

som-snytt opened this issue Jan 24, 2023 · 0 comments
Labels

Comments

@som-snytt
Copy link

Reproduction steps

Scala version: 2.13.10

partest jvm/t7253

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.

@SethTisue SethTisue transferred this issue from scala/bug Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants