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

Literal cannot be used as a modulus #34

Open
m1cm1c opened this issue Oct 7, 2021 · 0 comments
Open

Literal cannot be used as a modulus #34

m1cm1c opened this issue Oct 7, 2021 · 0 comments

Comments

@m1cm1c
Copy link

m1cm1c commented Oct 7, 2021

Steps to reproduce

  1. Try typing the following line in method outsource(): uint_150 t3 = (t0 * t1) % 42;

Problem

No matter how you type that line, the compiler always complains that something is not right. E.g. if you first type the left part of the assignment, then the percentage sign (this way you avoid a "syntax error" (even though the text that would be there would be exactly the same)), then everything left of the percentage sign, and then the 42, the compiler complains that:

The operator % is undefined for the argument type(s) UnsignedInteger, int (line: 134)

Expected behavior

It should behave the same as: uint_150 t3 = (t0 * t1) % uint_6(42);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant