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

Method boxing overloads + added private methods #450

Merged
merged 2 commits into from
Jun 13, 2023

Conversation

iusildra
Copy link
Contributor

@iusildra iusildra commented Jun 8, 2023

Fixes #445

I also removed the filter on private methods, we might want to be able to call them. Extra caution is required when these methods have side effects though

@iusildra iusildra marked this pull request as ready for review June 9, 2023 08:54
@@ -172,7 +172,9 @@ private[internal] class EvaluationProvider(
compilePrepare(expression, frame).orElse(Success(RuntimeExpression(tree)))
case Valid(tree) => Success(RuntimeExpression(tree))
case Fatal(e) => Failure(e)
case _: Invalid => compilePrepare(expression, frame)
case inv: Invalid =>
println(s"\u001b[31mInvalid expression: ${inv.exception}\u001b[0m")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to log something you should use an instance of ch.epfl.scala.debugadapter.Logger

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's not really for logging purposes, but for testing. Sometimes I wanted to be sure that the validation failed and not the evaluation

@iusildra iusildra merged commit e8bc704 into scalacenter:main Jun 13, 2023
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.

Fix method lookup when boxing/unboxing occurs
2 participants