Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0
-
None
Description
Scala 2.13 disallows use of the Unit companion object:
scala> val bar = (i:Int) => Unit
^
error: `Unit` companion object is not allowed in source; instead, use `()` for the unit value
In these cases, where it's used to mean the Unit object, just use ().
Attachments
Issue Links
- links to