diff --git a/libsolidity/experimental/ast/TypeSystem.h b/libsolidity/experimental/ast/TypeSystem.h index 17b427e85..00f710a76 100644 --- a/libsolidity/experimental/ast/TypeSystem.h +++ b/libsolidity/experimental/ast/TypeSystem.h @@ -136,12 +136,14 @@ public: { return m_typeClasses.at(_class.m_index).typeVariable; } -private: - friend class TypeEnvironment; + TypeClassInfo const& typeClassInfo(TypeClass _class) const { return m_typeClasses.at(_class.m_index); } + +private: + friend class TypeEnvironment; size_t m_numTypeVariables = 0; std::map m_primitiveTypeConstructors; std::map m_primitiveTypeClasses;