Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Rule

Operand 2

Operand 3

Resultant Type

1

Type T

Type T

Type T

2

boolean

Boolean

boolean

3

Boolean

boolean

boolean

4

null

reference

reference

5

reference

null

reference

6

byte or Byte

short or Short

short

7

short or Short

byte or Byte

short

8

byte, short, char, Byte, Short, Character

constant int

byte, short, char if value of int is representable

9

constant int

byte, short, char, Byte, Short, Character

byte, short, char if value of int is representable

10

Other numeric

Other numeric

Promoted type of the 2nd second and 3rd third operands

11

T1 = boxing conversion(S1)

T2 = boxing conversion(S2)

Apply capture conversion to lub(T1,T2)

...