mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add type().min/max for enums
This commit is contained in:
@@ -566,9 +566,10 @@ MagicType const* TypeProvider::meta(Type const* _type)
|
||||
solAssert(
|
||||
_type && (
|
||||
_type->category() == Type::Category::Contract ||
|
||||
_type->category() == Type::Category::Integer
|
||||
_type->category() == Type::Category::Integer ||
|
||||
_type->category() == Type::Category::Enum
|
||||
),
|
||||
"Only contracts or integer types supported for now."
|
||||
"Only enum, contracts or integer types supported for now."
|
||||
);
|
||||
return createAndGet<MagicType>(_type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user