You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Autocompletion for Scala 3 extension methods currently has many shortcomings. Here's the status quo of what works and doesn't work with Scala 3.2.0.
Starting with the good: the following works, if you paste it as one block into amm:
classAextension (a: A)
deffoobarbaz:Int=42vala=newA// paste everything above as one block
a.foo<tab> // completes fine
Issue 1: if you paste the same in two blocks, autocompletion doesn't work any longer:
classA// submit the above line first!extension (a: A)
deffoobarbaz:Int=42vala=newA
a.foo<tab> // doesn't autocomplete :(
a.foobarbaz // compiles fine though...
Issue 2: the parser doesn't support curly braces
classAextension (a: A) {
deffoobarbaz:Int=42
}
vala=newA
a.foo<tab> // doesn't autocomplete :(
a.foobarbaz // compiles fine though...
Issue 3: importing them from a different namespace doesn't work either:
classAobjectAExt:extension (a: A)
deffoobarbaz:Int=42importAExt.foobarbazvala=newA
a.foo<tab> // doesn't autocomplete :(
a.foobarbaz // compiles fine though...
All of the above work in the regular scala 3.2.0 repl.
The text was updated successfully, but these errors were encountered:
Autocompletion for Scala 3 extension methods currently has many shortcomings. Here's the status quo of what works and doesn't work with Scala 3.2.0.
Starting with the good: the following works, if you paste it as one block into amm:
Issue 1: if you paste the same in two blocks, autocompletion doesn't work any longer:
Issue 2: the parser doesn't support curly braces
Issue 3: importing them from a different namespace doesn't work either:
All of the above work in the regular scala 3.2.0 repl.
The text was updated successfully, but these errors were encountered: