Fix member lookup for constructor in library.

This commit is contained in:
chriseth
2020-08-04 10:51:40 +02:00
parent d31f05fcc0
commit c96e997a3c
4 changed files with 9 additions and 1 deletions
+1
View File
@@ -792,6 +792,7 @@ public:
m_body(_body)
{
solAssert(_kind == Token::Constructor || _kind == Token::Function || _kind == Token::Fallback || _kind == Token::Receive, "");
solAssert(isOrdinary() == !name().empty(), "");
}
void accept(ASTVisitor& _visitor) override;