Skip to content
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

Merged
merged 1 commit into from
May 17, 2024
Merged

scala 3.4.2 #385

merged 1 commit into from
May 17, 2024

Conversation

fwbrasil
Copy link
Collaborator

No description provided.

@@ -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] = ()
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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.

Copy link
Collaborator

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?

Copy link
Collaborator Author

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
Copy link
Collaborator

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?

@hearnadam hearnadam merged commit e219729 into main May 17, 2024
3 checks passed
@fwbrasil fwbrasil deleted the scala342 branch June 6, 2024 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants