summaryrefslogblamecommitdiff
path: root/test/files/neg/unit2anyref.check
blob: 6d11461700bc88d134657130057b4e0fb230f3ea (plain) (tree)
1
2
3
4
5
6


                                          


                                                 
unit2anyref.scala:2: error: type mismatch;
 found   : Unit
 required: AnyRef
  val x: AnyRef = ()  // this should not succeed.
                  ^
one error found