-
Notifications
You must be signed in to change notification settings - Fork 30
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
Builtin get and set operations cannot be shadowed when using dot notation #335
Comments
Hi @IR0NSIGHT, thanks for reporting. I'm running into the same problem in Advent of Code. I can also trigger the error message when using Here's the definition of effekt/effekt/shared/src/main/scala/effekt/symbols/builtins.scala Lines 85 to 86 in 4d2e486
|
Simple reproduction which doesn't need the import of def get(x: Int): Int = x + 42
def main() = {
val result = 100.get
println(result)
} produces the error:
which originates in Typer:
However, calling def get(x: Int): Int = x + 42
def main() = {
val result = get(100)
println(result) // prints 142
} |
Is this requirement still necessary with #305, @b-studios? It would be nice to "release" |
linter bug: Unbox requires a boxed type, but got Array[Int].effekt
minified example:
The text was updated successfully, but these errors were encountered: