resolve error referenced as member of contract

pull/1574/head
alpharush 2 years ago
parent 53238600a1
commit b189951617
  1. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.10-compact.zip
  2. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.11-compact.zip
  3. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.12-compact.zip
  4. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.13-compact.zip
  5. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.14-compact.zip
  6. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.15-compact.zip
  7. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.4-compact.zip
  8. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.5-compact.zip
  9. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.6-compact.zip
  10. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.7-compact.zip
  11. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.8-compact.zip
  12. BIN
      tests/ast-parsing/compile/custom-error-selector.sol-0.8.9-compact.zip
  13. 13
      tests/ast-parsing/custom-error-selector.sol
  14. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.10-compact.json
  15. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.11-compact.json
  16. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.12-compact.json
  17. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.13-compact.json
  18. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.14-compact.json
  19. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.15-compact.json
  20. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.4-compact.json
  21. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.5-compact.json
  22. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.6-compact.json
  23. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.7-compact.json
  24. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.8-compact.json
  25. 10
      tests/ast-parsing/expected/custom-error-selector.sol-0.8.9-compact.json

@ -0,0 +1,13 @@
contract Test {
error myError();
}
interface VM {
function expectRevert(bytes4) external;
function expectRevert(bytes calldata) external;
}
contract A {
function b(address c) public {
VM(c).expectRevert(Test.myError.selector);
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}

@ -0,0 +1,10 @@
{
"Test": {},
"VM": {
"expectRevert(bytes4)": "digraph{\n}\n",
"expectRevert(bytes)": "digraph{\n}\n"
},
"A": {
"b(address)": "digraph{\n0[label=\"Node Type: ENTRY_POINT 0\n\"];\n0->1;\n1[label=\"Node Type: EXPRESSION 1\n\"];\n}\n"
}
}
Loading…
Cancel
Save