mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
tmp
This commit is contained in:
parent
2e9b844d65
commit
48b35bd921
@ -117,8 +117,7 @@ private:
|
|||||||
friend class TypeSystem;
|
friend class TypeSystem;
|
||||||
size_t m_index = 0;
|
size_t m_index = 0;
|
||||||
Sort m_sort;
|
Sort m_sort;
|
||||||
TypeVariable(size_t _index, Sort _sort):
|
TypeVariable(size_t _index, Sort _sort): m_index(_index), m_sort(std::move(_sort)) {}
|
||||||
m_index(_index), m_sort(std::move(_sort)) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -398,7 +398,13 @@ std::string TypeEnvironmentHelpers::typeToString(Type const& _type) const
|
|||||||
},
|
},
|
||||||
[](TypeVariable const& _type) {
|
[](TypeVariable const& _type) {
|
||||||
std::stringstream stream;
|
std::stringstream stream;
|
||||||
stream << "'var" << _type.index();
|
std::string varName;
|
||||||
|
size_t index = _type.index();
|
||||||
|
varName += 'a' + static_cast<char>(index%26);
|
||||||
|
while (index /= 26)
|
||||||
|
varName += 'a' + static_cast<char>(index%26);
|
||||||
|
reverse(varName.begin(), varName.end());
|
||||||
|
stream << '\'' << varName;
|
||||||
switch (_type.sort().classes.size())
|
switch (_type.sort().classes.size())
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user