You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ scala git:(issue/12851-namepos) scalac -d /tmp -cp /tmp test/files/neg/t12851b/C_2.scala
warning: method with a single empty parameter list overrides method without any parameter list
1 warning
➜ scala git:(issue/12851-namepos) scalac -d /tmp test/files/neg/t12851b/*.scala
test/files/neg/t12851b/T_1.scala:8: warning: method with a single empty parameter list overrides method without any parameter list
def f() = 42
^
1 warning
should offer both warnings, whether compiled together or separately:
➜ scala git:(issue/12851-namepos) skalac -d /tmp -cp /tmp test/files/neg/t12851b/C_2.scala
test/files/neg/t12851b/C_2.scala:2: warning: method (method f in trait T2) with a single empty parameter list overrides method without any parameter list
class C extends T1 with T2
^
test/files/neg/t12851b/C_2.scala:2: warning: method (method g in trait T2) without a parameter list overrides a method with a single empty one
class C extends T1 with T2
^
2 warnings
➜ scala git:(issue/12851-namepos) skalac -d /tmp test/files/neg/t12851b/*.scala
test/files/neg/t12851b/C_2.scala:2: warning: method (method f in trait T2) with a single empty parameter list overrides method without any parameter list
class C extends T1 with T2
^
test/files/neg/t12851b/C_2.scala:2: warning: method (method g in trait T2) without a parameter list overrides a method with a single empty one
class C extends T1 with T2
^
2 warnings
Reproduction steps
Scala version: 2.13.12
Problem
should offer both warnings, whether compiled together or separately:
Noticed at #12851
The text was updated successfully, but these errors were encountered: