You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should cause compiler error: discarded non-Unit value of type Unit < (kyo.IO & kyo.Abort[java.io.IOException]) (If the defer block in runInner is replaced with a direct call to Console.println, this is what happens)
Actual result
No compiler error or warnings, and the application runs without displaying anything message
The text was updated successfully, but these errors were encountered:
Workaround: annotating runInner as Any < ... will cause the compiler to catch the error. It seems to be a problem only for unit values. Anyone working with kyo-direct might consider using Any in place of Unit until some solution is found.
Minimized example
scalac options in build.sbt:
Expected result
Should cause compiler error:
discarded non-Unit value of type Unit < (kyo.IO & kyo.Abort[java.io.IOException])
(If thedefer
block inrunInner
is replaced with a direct call toConsole.println
, this is what happens)Actual result
No compiler error or warnings, and the application runs without displaying anything message
The text was updated successfully, but these errors were encountered: