63 lines
1.1 KiB
Plaintext
63 lines
1.1 KiB
Plaintext
|
=== tests/cases/compiler/enumOperations.ts ===
|
||
|
enum Enum { None = 0 }
|
||
|
>Enum : Enum
|
||
|
>None : Enum
|
||
|
|
||
|
var enumType: Enum = Enum.None;
|
||
|
>enumType : Enum
|
||
|
>Enum : Enum
|
||
|
>Enum.None : Enum
|
||
|
>Enum : typeof Enum
|
||
|
>None : Enum
|
||
|
|
||
|
var numberType: number = 0;
|
||
|
>numberType : number
|
||
|
|
||
|
var anyType: any = 0;
|
||
|
>anyType : any
|
||
|
|
||
|
enumType ^ numberType;
|
||
|
>enumType ^ numberType : number
|
||
|
>enumType : Enum
|
||
|
>numberType : number
|
||
|
|
||
|
numberType ^ anyType;
|
||
|
>numberType ^ anyType : number
|
||
|
>numberType : number
|
||
|
>anyType : any
|
||
|
|
||
|
enumType & anyType;
|
||
|
>enumType & anyType : number
|
||
|
>enumType : Enum
|
||
|
>anyType : any
|
||
|
|
||
|
enumType | anyType;
|
||
|
>enumType | anyType : number
|
||
|
>enumType : Enum
|
||
|
>anyType : any
|
||
|
|
||
|
enumType ^ anyType;
|
||
|
>enumType ^ anyType : number
|
||
|
>enumType : Enum
|
||
|
>anyType : any
|
||
|
|
||
|
~anyType;
|
||
|
>~anyType : number
|
||
|
>anyType : any
|
||
|
|
||
|
enumType <<anyType;
|
||
|
>enumType <<anyType : number
|
||
|
>enumType : Enum
|
||
|
>anyType : any
|
||
|
|
||
|
enumType >>anyType;
|
||
|
>enumType >>anyType : number
|
||
|
>enumType : Enum
|
||
|
>anyType : any
|
||
|
|
||
|
enumType >>>anyType;
|
||
|
>enumType >>>anyType : number
|
||
|
>enumType : Enum
|
||
|
>anyType : any
|
||
|
|