We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eb8de4 commit 8ddb8c8Copy full SHA for 8ddb8c8
tests/pos/i1793.scala
@@ -1,7 +1,7 @@
1
object Test {
2
import scala.ref.WeakReference
3
def unapply[T <: AnyRef](wr: WeakReference[T]): Option[T] = {
4
- val x = wr.underlying.get
+ val x: T = wr.underlying.get
5
if (x != null) Some(x) else None
6
}
7
0 commit comments