Skip to content

Test all promotions of primitive types are handled correctly #81

Open
@ftomassetti

Description

@ftomassetti

We should:

  • introduce long literal
  • introduce byte literal
  • introduce short literal
  • introduce float literal
  • introduce a sort of cast (getA() as int, getB() as long) for primitive type conversions
  • test automatic conversion from int to long (var long a = getInt())
  • test automatic conversion from short to long (var long a = getShort())
  • test automatic conversion from byte to long (var long a = getByte())
  • test automatic conversion from short to int (var int a = getShort())
  • test automatic conversion from byte to int (var int a = geByte())
  • test automatic conversion from byte to short (var byte a = getByte())
  • test automatic conversion from float to double (var double a = getFloat())

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions