aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/523_reject_interface_creation.sol
blob: 35bba5b314ce68c89be1c41510caf46c6e015634 (plain) (tree)
1
2
3
4
5
6
7
8







                                                       
interface I {}
contract C {
    function f() public {
        new I();
    }
}
// ----
// TypeError: (62-67): Cannot instantiate an interface.