- edited description
Collection object resolution doesn't work when not assigned to variable.
When you create a list, set or map inline resolution of methods doesn’t work.
Comments (8)
-
reporter -
repo owner Hmmmm...that's surprising. I'll take a look.
-
repo owner Justin, I'm unable to reproduce this. I just tried the following:
new List<String> { 'Scott', 'Wells' }.contains('Justin')
and there were no errors. I do see an extract closing parenthesis in your example. Is that perhaps the issue? Or am I misunderstanding the problem you're reporting?
-
repo owner - changed status to resolved
Resolving due to lack of activity. If this is still happening, feel free to reopen with a reproducible example (since I wasn't able to reproduce based on the original one).
-
Hi Scott,
Sorry I only just saw this again…. mustn’t have gotten the email last time or something.
I think I didn’t explain this clearly in the original post. If I type in '
new List<String> { 'Scott', 'Wells' }
' in apex debugger then hit ctrl-enter I would expect it to list all the methods for the List Class - but I get no suggestions (as per the screenshot below).I just tried this again and (being on a new laptop and new project) don’t get the suggestions.
Expected:
Does that work for you?
thanks
-
repo owner - changed status to open
Yep, that reproduced it. I wonder why it didn't reproduce previously. I must have been doing something different than your original example. Anyway, reopening so I can address it.
-
repo owner Fix committed for inclusion in the next build.
-
repo owner - changed status to resolved
Delivered in 2.1.4.8.
- Log in to comment