[
https://issues.apache.org/jira/browse/SPARK-29411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun resolved SPARK-29411.
-----------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 26070
[https://github.com/apache/spark/pull/26070]
> Remove use of Unit companion object in favor of ()
> --------------------------------------------------
>
> Key: SPARK-29411
> URL: https://issues.apache.org/jira/browse/SPARK-29411
> Project: Spark
> Issue Type: Sub-task
> Components: ML, Spark Core
> Affects Versions: 3.0.0
> Reporter: Sean R. Owen
> Assignee: Sean R. Owen
> Priority: Minor
> Fix For: 3.0.0
>
>
> Scala 2.13 disallows use of the {{Unit}} companion object:
> {code}
> scala> val bar = (i:Int) => Unit
> ^
> error: `Unit` companion object is not allowed in source; instead, use
> `()` for the unit value
> {code}
> In these cases, where it's used to mean _the_ Unit object, just use {{()}}.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]