Add tests for literal operations as well.

This commit is contained in:
Daniel Kirchner
2018-04-11 23:20:40 +02:00
parent daa69df447
commit 932915633b
4 changed files with 20 additions and 0 deletions
@@ -0,0 +1,5 @@
contract C {
uint constant b3 = 1 % (-4+((2)*2));
}
// ----
// TypeError: (36-52): Operator % not compatible with types int_const 1 and int_const 0