Merge pull request #9909 from ethereum/fix-9890

Fix missing annotation settings because of early return
This commit is contained in:
chriseth
2020-09-28 12:27:43 +02:00
committed by GitHub
2 changed files with 9 additions and 3 deletions
@@ -0,0 +1,6 @@
// Used to trigger assert
contract s{}
function f() {s[:][];}
// ----
// TypeError 1760: (53-57): Types cannot be sliced.
// TypeError 2876: (53-59): Index access for contracts or libraries is not possible.