solidity/test/libsolidity/syntaxTests/indexing/index_range_access_assert.sol

7 lines
207 B
Solidity

// 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.