mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Adding more syntax and semantic tests.
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user