mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
fixup! Test cases
This commit is contained in:
parent
6fe8ff2acf
commit
b815483fc3
@ -8,7 +8,7 @@ contract C {
|
|||||||
abi.encodePacked(2 uintUintSuffix);
|
abi.encodePacked(2 uintUintSuffix);
|
||||||
abi.encodeWithSelector(0x12345678, 3 uintUintSuffix);
|
abi.encodeWithSelector(0x12345678, 3 uintUintSuffix);
|
||||||
abi.encodeWithSignature("f()", 4 uintUintSuffix);
|
abi.encodeWithSignature("f()", 4 uintUintSuffix);
|
||||||
//abi.encodeCall(this.g, 5 uintUintSuffix); // TODO: Causes an ICE
|
abi.encodeCall(this.g, 5 uintUintSuffix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
@ -16,3 +16,4 @@ contract C {
|
|||||||
// TypeError 2056: (218-234): This type cannot be encoded.
|
// TypeError 2056: (218-234): This type cannot be encoded.
|
||||||
// TypeError 2056: (280-296): This type cannot be encoded.
|
// TypeError 2056: (280-296): This type cannot be encoded.
|
||||||
// TypeError 2056: (338-354): This type cannot be encoded.
|
// TypeError 2056: (338-354): This type cannot be encoded.
|
||||||
|
// TypeError 9062: (388-404): Expected an inline tuple, not an expression of a tuple type.
|
||||||
|
@ -11,7 +11,7 @@ contract C {
|
|||||||
abi.encodePacked(2 nullSuffix);
|
abi.encodePacked(2 nullSuffix);
|
||||||
abi.encodeWithSelector(0x12345678, 3 nullSuffix);
|
abi.encodeWithSelector(0x12345678, 3 nullSuffix);
|
||||||
abi.encodeWithSignature("f()", 4 nullSuffix);
|
abi.encodeWithSignature("f()", 4 nullSuffix);
|
||||||
//abi.encodeCall(this.g, 5 nullSuffix); // TODO: Causes an ICE
|
abi.encodeCall(this.g, 5 nullSuffix);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
@ -19,3 +19,4 @@ contract C {
|
|||||||
// TypeError 2056: (225-237): This type cannot be encoded.
|
// TypeError 2056: (225-237): This type cannot be encoded.
|
||||||
// TypeError 2056: (283-295): This type cannot be encoded.
|
// TypeError 2056: (283-295): This type cannot be encoded.
|
||||||
// TypeError 2056: (337-349): This type cannot be encoded.
|
// TypeError 2056: (337-349): This type cannot be encoded.
|
||||||
|
// TypeError 9062: (383-395): Expected an inline tuple, not an expression of a tuple type.
|
||||||
|
Loading…
Reference in New Issue
Block a user