Skip to content

Commit 6892e2f

Browse files
committed
Modify test to avoid warning which distracts from its intent
1 parent 1aa4fab commit 6892e2f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

test/files/run/t1434.check

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
t1434.scala:7: warning: comparing values of types Null and Null using `!=' will always yield false
2-
case a: A[_] if(a.op != null) => "with op"
3-
^

test/files/run/t1434.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
object Test {
2-
class A[T] { val op = null }
2+
class A[T] { val op: AnyRef = null }
33
class B extends A[Any]
44
class C extends B
55

0 commit comments

Comments
 (0)