mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not set to ref for explicit conversion and add assertion for array
type conversion. Also, add some test cases for #4901 and #4948.
This commit is contained in:
committed by
Daniel Kirchner
parent
5f4a2d2cad
commit
f3cbdadec7
@@ -0,0 +1,9 @@
|
||||
contract C {
|
||||
string a;
|
||||
string b;
|
||||
function f() public view {
|
||||
string storage c = a;
|
||||
string memory d = b;
|
||||
d = string(c);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user