mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add Enum constraint to enummap
Fix typo in enumset require
This commit is contained in:
committed by
Christoffer Lerno
parent
d5a96ed637
commit
0900f401c0
@@ -1,3 +1,6 @@
|
||||
/**
|
||||
* @require Enum.kindof == TypeKind.ENUM : "Only enums may be used with an enummap"
|
||||
**/
|
||||
module std::collections::enummap(<Enum, ValueType>);
|
||||
import std::io;
|
||||
struct EnumMap (Printable)
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
// a copy of which can be found in the LICENSE_STDLIB file.
|
||||
|
||||
/**
|
||||
* @require Enum.kindof == TypeKind.ENUM : "Only enums maybe be used with an enumset"
|
||||
* @require Enum.kindof == TypeKind.ENUM : "Only enums may be used with an enumset"
|
||||
**/
|
||||
module std::collections::enumset(<Enum>);
|
||||
import std::io;
|
||||
|
||||
Reference in New Issue
Block a user