1 2 3 4 5 6 7 8 9 10
contract test { function foo() public { } function f() public { foo g; } } // ---- // TypeError: (85-88): Name has to refer to a struct, enum or contract.