Escaping special characters in Ballerina

76 Views Asked by At

I need to define a MembershipStatus Enum as depicted below.

public enum MembershipStatus {
    INVITED,
    REGISTERED, 
    DEACTIVATED, 
    RE-INVITED
}

It says operator '-' not defined for 'string'. What is the correct way of specifying RE-INVITED?

1

There are 1 best solutions below

0
Gabil On BEST ANSWER

You can escape with the character \, something like this RE\-INVITED