Autocomplete of SObject fields inside List initialization doesn't work

Issue #1608 resolved
Jaap Branderhorst created an issue

Try the following:

  1. Open an Apex class in the editor.
  2. Enter the following code:
return new List<Schema.SObjectField>{
    PermissionSetAssignment.
};

3. Expected behavior: autocomplete shows the fields of PermissionSetAssignment but doesn’t.

Doing this outside the initialization code of the list works as expected.

Comments (3)

  1. Log in to comment