-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scala 3.4.2 #385
scala 3.4.2 #385
Conversation
@@ -17,18 +18,23 @@ object Loops: | |||
private val _continueUnit = Continue[Unit](()) | |||
|
|||
inline def continue[T]: Result[Unit, T] = _continueUnit | |||
inline def done[T]: Result[T, Unit] = () |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The compiler doesn't line the inline
overloaded methods anymore. This should be ok since the method will be inlined by the JIT compiler.
@@ -45,7 +45,7 @@ class varsTest extends KyoTest: | |||
assert(outerValue == 1) | |||
} | |||
} | |||
} | |||
}.pure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting that this was compiling before, it shouldn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this only happen after adding the Int
type?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I could have removed the Int
annotations. It was my initial attempt but then I saw pure
was missing.
@@ -45,7 +45,7 @@ class varsTest extends KyoTest: | |||
assert(outerValue == 1) | |||
} | |||
} | |||
} | |||
}.pure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this only happen after adding the Int
type?
No description provided.