Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test all promotions of primitive types are handled correctly #81

Open
12 tasks
ftomassetti opened this issue Sep 29, 2015 · 0 comments
Open
12 tasks

Test all promotions of primitive types are handled correctly #81

ftomassetti opened this issue Sep 29, 2015 · 0 comments

Comments

@ftomassetti
Copy link
Owner

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())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant