mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add tests to increase TypeChecker.cpp coverage
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// This used to cause an internal error because of the visitation order.
|
||||
contract Test {
|
||||
struct S { uint a; }
|
||||
function f() public {
|
||||
new S();
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (147-152): Identifier is not a contract.
|
||||
Reference in New Issue
Block a user