mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol->Yul] Changing yul unimplemented test as delete bytes is implemented now.
This commit is contained in:
parent
4a66723ff9
commit
5f0b8dd716
@ -2123,7 +2123,10 @@ string YulUtilFunctions::updateStorageValueFunction(
|
|||||||
fromReferenceType->location(),
|
fromReferenceType->location(),
|
||||||
fromReferenceType->isPointer()
|
fromReferenceType->isPointer()
|
||||||
).get() == *fromReferenceType, "");
|
).get() == *fromReferenceType, "");
|
||||||
solUnimplementedAssert(fromReferenceType->location() != DataLocation::Storage, "");
|
solUnimplementedAssert(
|
||||||
|
fromReferenceType->location() != DataLocation::Storage,
|
||||||
|
"Copying from storage to storage is not yet implemented."
|
||||||
|
);
|
||||||
solAssert(toReferenceType->category() == fromReferenceType->category(), "");
|
solAssert(toReferenceType->category() == fromReferenceType->category(), "");
|
||||||
|
|
||||||
if (_toType.category() == Type::Category::Array)
|
if (_toType.category() == Type::Category::Array)
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Error (1834): Unimplemented feature error: Byte Arrays not yet implemented! in FILENAME REMOVED
|
Error (1834): Unimplemented feature error: Copying from storage to storage is not yet implemented. in FILENAME REMOVED
|
||||||
--> yul_unimplemented/input.sol:6:9:
|
--> yul_unimplemented/input.sol:7:9:
|
||||||
|
|
|
|
||||||
6 | delete a;
|
7 | a = b;
|
||||||
| ^^^^^^^^
|
| ^^^^^
|
||||||
|
@ -2,7 +2,8 @@
|
|||||||
pragma solidity >=0.0;
|
pragma solidity >=0.0;
|
||||||
contract test {
|
contract test {
|
||||||
bytes a;
|
bytes a;
|
||||||
|
bytes b;
|
||||||
function f() public {
|
function f() public {
|
||||||
delete a;
|
a = b;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user