summaryrefslogblamecommitdiff
path: root/test/files/neg/nullary-override.check
blob: f032f4a6c22b6d5bf7734b7676b1263f851b8727 (plain) (tree)
1
2
3
4
5
6
                                                                              

                                               

                                                          
               
nullary-override.scala:2: warning: non-nullary method overrides nullary method
class B extends A { override def x(): Int = 4 }
                                 ^
error: No warnings can be incurred under -Xfatal-warnings.
one warning found
one error found