Skip to content

Commit fa0a954

Browse files
Fix pending/run/{Meter,MeterCaseClass} tests
1 parent 83813f9 commit fa0a954

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

tests/pending/run/Meter.check renamed to tests/run/Meter.check

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
Meter.scala:72: warning: a.Meter and Int are unrelated: they will never compare equal
2-
println("x == 1: "+(x == 1))
3-
^
41
2.0
52
4.0m
63
false

tests/pending/run/Meter.scala renamed to tests/run/Meter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ object Test extends dotty.runtime.LegacyApp {
6969

7070

7171
println("x.hashCode: "+x.hashCode)
72-
println("x == 1: "+(x == 1))
72+
println("x == 1: "+false) // Values of types a.Meter and Int cannot be compared with == or !=
7373
println("x == y: "+(x == y))
7474
assert(x.hashCode == (1.0).hashCode)
7575

tests/pending/run/MeterCaseClass.check renamed to tests/run/MeterCaseClass.check

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
MeterCaseClass.scala:69: warning: comparing values of types a.Meter and Int using `==' will always yield false
2-
println("x == 1: "+(x == 1))
3-
^
41
2.0
52
Meter(4.0)
63
false

tests/pending/run/MeterCaseClass.scala renamed to tests/run/MeterCaseClass.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ object Test extends dotty.runtime.LegacyApp {
6666

6767

6868
println("x.hashCode: "+x.hashCode)
69-
println("x == 1: "+(x == 1))
69+
println("x == 1: "+false) // Values of types a.Meter and Int cannot be compared with == or !=
7070
println("x == y: "+(x == y))
7171
assert(x.hashCode == (1.0).hashCode)
7272

0 commit comments

Comments
 (0)