Adding more syntax and semantic tests.

This commit is contained in:
Djordje Mijovic
2020-12-21 15:30:49 +01:00
parent 21dc6c8356
commit 8b6397e8fb
2 changed files with 38 additions and 0 deletions
@@ -0,0 +1,13 @@
contract C {
int256[32] data1;
uint256[10] data2;
function f() external {
data1 = data2;
}
function g() external {
data2 = data1;
}
}
// ----
// TypeError 7407: (102-107): Type uint256[10] storage ref is not implicitly convertible to expected type int256[32] storage ref.
// TypeError 7407: (159-164): Type int256[32] storage ref is not implicitly convertible to expected type uint256[10] storage ref.