summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-08-25 06:49:52 +0800
committerGitHub <noreply@github.com>2022-08-25 00:49:52 +0200
commit404e91ce48862c2a7f5e871cce41409d7301fa81 (patch)
tree126aa302cae259529c8cc80c28fef743b0e63707 /compiler
parentd143924ab2e3914cb3ce0fedac5c5779832df3d8 (diff)
downloadNim-404e91ce48862c2a7f5e871cce41409d7301fa81.tar.gz
provide better error messages for large set (#20207)
Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semtypes.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim
index 3fa449334..8ddc2196a 100644
--- a/compiler/semtypes.nim
+++ b/compiler/semtypes.nim
@@ -17,7 +17,7 @@ const
   errWrongNumberOfVariables = "wrong number of variables"
   errInvalidOrderInEnumX = "invalid order in enum '$1'"
   errOrdinalTypeExpected = "ordinal type expected"
-  errSetTooBig = "set is too large"
+  errSetTooBig = "set is too large; use `std/sets` for ordinal types with more than 2^16 elements"
   errBaseTypeMustBeOrdinal = "base type of a set must be an ordinal"
   errInheritanceOnlyWithNonFinalObjects = "inheritance only works with non-final objects"
   errXExpectsOneTypeParam = "'$1' expects one type parameter"