We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 code runner version: 1.4.3 Scala version (default): 3.5.2
package `2015`.day24 def quantumEntanglement(xs: Iterable[Long]): Long = xs.product @main def main() = val input = Vector(1L, 2L) val groupWeight = input.sum / 3 val answer = (1 to input.size).iterator .map { n => val combs = input.combinations(n).filter(_.sum == groupWeight).toVector combs } println(answer)
combs
.map { n => - val combs = input.combinations(n).filter(_.sum == groupWeight).toVector - combs + input.combinations(n).filter(_.sum == groupWeight).toVector }
code inlining is done without issue.
however, inlining fails with:
Following variables are shadowed: scala.Long.==.
Linux
VS Code
v1.42.0
reports.zip
The text was updated successfully, but these errors were encountered:
Thanks for reporting! I will try and take a look later next week
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Scala code runner version: 1.4.3
Scala version (default): 3.5.2
combs
.Expected behavior
code inlining is done without issue.
Actual behavior
however, inlining fails with:
Following variables are shadowed: scala.Long.==.
Operating system
Linux
Editor/Extension
VS Code
Version of Metals
v1.42.0
Extra context or search terms
reports.zip
The text was updated successfully, but these errors were encountered: