aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/265_new_for_non_array.sol
blob: c4b2c692e8ac5ea41b7a5ddc82e9bdc0cdea3035 (plain) (tree)
1
2
3
4
5
6
7

                                  
                             


       
                                                       
contract C {
    function f(uint size) public {
        uint x = new uint(7);
    }
}
// ----
// TypeError: (65-73): Contract or array type expected.