-
Notifications
You must be signed in to change notification settings - Fork 394
Closed
scala/scala3
#24169Labels
Scala 3Generic ticket relating to Scala 3Generic ticket relating to Scala 3bugSomething that is making a piece of functionality unusableSomething that is making a piece of functionality unusablecompletionsTickets related to completion functionalityTickets related to completion functionalityspree
Description
//> using scala 3.7.3-RC2
type Item = (name: String, s: String)
def handle2(item: Item) =
item.@@name
def handle3(item: (name: String, s: String)) =
item.@@name
- Put the cursor on either of the
@@
s and try to invoke completions. Neithername
nors
will show up. Instead, you'll see an item foritem: (name: String)
, which results in invalid code (item.itemname
oritem.names
respectively). Similar things happen in further characters of the token, exceptitem
stops appearing later.
Expected behaviour:
Both name
and s
get suggested
Operating system:
Mac OS X
Java version:
21.0.4
Editor/extension:
Visual Studio Code v1.95.2
Metals version:
1.6.2
Extra context or search terms:
Workspace information:
- Scala versions: 3.7.3-RC2
- Build tools: scala-cli
- Build servers: scala-cli v1.8.5
- All build tools in workspace:
Metadata
Metadata
Assignees
Labels
Scala 3Generic ticket relating to Scala 3Generic ticket relating to Scala 3bugSomething that is making a piece of functionality unusableSomething that is making a piece of functionality unusablecompletionsTickets related to completion functionalityTickets related to completion functionalityspree