aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/viewPureChecker/creation_view_fail.sol
blob: 08e45ea1ef7199f6663028a993956397e1e5f0f0 (plain) (blame)
1
2
3
4
5
6
contract D {}
contract C {
    function f() public view { new D(); }
}
// ----
// TypeError: (58-65): Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.