mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
207 B
Solidity
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.
|