Skip to content

[apex] Support null coalescing operator ?? (apex 60) #1380

@vctqs1

Description

@vctqs1

Is your feature request related to an issue that you encountered with Salesforce Code Analyzer?

Yes, this is new operator supported on apex 60
I am currently in the process of updating my Apex codebase to version 60, and I've introduced the use of the null coalescing operator ??, which is a new feature in Apex v60.

Describe the solution that you want:

sfdx-scanner support ?? operator

Describe alternatives that you've considered:

N/A

Additional Context:

Analyzing with Salesforce Graph Engine. See /Users/vctqs1/.sfdx-scanner/sfge.log for details.... Error
Error (1): Graph engine encountered compilation errors. Fix the errors in /Users/vctqs1/Documents/developer/manabie/erp-salesforce/packages/auth/main/default/classes/PublicGroupHandler.cls and retry., Caused by:
Invalid syntax at 395:83. (Unexpected token '?'.)
Invalid syntax at 395:108. (Expecting ':' but was: ';')
image

Workaround:

N/A
Urgency:

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    USER STORYNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions