summaryrefslogblamecommitdiff
path: root/test/files/neg/unit-returns-value.check
blob: 18368f45abe4f876a825430eddac626db700b5c2 (plain) (tree)
1
2
3
4



                                                                                                  
unit-returns-value.scala:4: error: enclosing method f has result type Unit: return value discarded
    if (b) return 5
           ^
one error found