blob: 10fe1861f50b0426bfe686f892f1a85e7e1d0c96 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
unit2anyref.scala:2: error: type mismatch;
found : Unit
required: AnyRef
Note: Unit is not implicitly converted to AnyRef. You can safely
pattern match `x: AnyRef` or cast `x.asInstanceOf[AnyRef]` to do so.
val x: AnyRef = () // this should not succeed.
^
one error found
|