Skip to content

Commit b0e548e

Browse files
committed
Fix for test cases
Needed to pass multiversal equality rules.
1 parent df75369 commit b0e548e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/pos/Meter.scala

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

7070

7171
println("x.hashCode: " + x.hashCode)
72-
println("x == 1: " +(x == 1))
72+
println("x == 1: " +((x: Any) == 1))
7373
println("x == y: " +(x == y))
7474
assert(x.hashCode == (1.0).hashCode)
7575

tests/pos/i1665.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
object Test {
33
!=(1)
44
!=("abc")
5-
1 != this
5+
1 != (this: Any)
66
!=(this)
77
}

tests/run/tryPatternMatch.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ object Test extends TestTrait {
112112
case _: ExceptionTrait => println("ExceptionTrait")
113113
case e: IOException if e.getMessage == null => println("IOException")
114114
case _: NullPointerException | _:IOException => println("NullPointerException | IOException")
115-
case `a` => println("`a`")
115+
// case `a` => println("`a`")
116116
case EX => println("EX")
117117
case e: IllegalArgumentException => println("IllegalArgumentException")
118118
case _: ClassCastException => println("ClassCastException")

0 commit comments

Comments
 (0)