Add tests to increase TypeChecker.cpp coverage

This commit is contained in:
Mathias Baumann
2019-02-13 16:31:26 +01:00
parent 6a6cc27b71
commit 1e603c27ea
8 changed files with 80 additions and 14 deletions
@@ -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.