Inheriting def main(...)

Digging further. This looks to be a problem with how Unit is imported / aliased.

if scala.Unit is imported in the file these methods are found.

if it is exported in the custom predef as type Unit = scala.Unit then main method inheritance breaks.

export scala.Unit in the custom predef does not work

[error] 11 |export scala.Unit
[error]    |             ^
[error]    |`Unit` companion object is not allowed in source; instead, use `()` for the unit value
2 Likes