summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorPylgos <43234674+Pylgos@users.noreply.github.com>2023-09-02 13:00:26 +0900
committerGitHub <noreply@github.com>2023-09-02 06:00:26 +0200
commit9f1fe8a2da27abc1e93a05debbb2622b524aae0d (patch)
tree2d781095a13cc7a83491a4f43b1783ee1fa990b1
parent2542dc09c829a709050335066b0f414d6fc68fe2 (diff)
downloadNim-9f1fe8a2da27abc1e93a05debbb2622b524aae0d.tar.gz
Fix the problem where instances of generic objects with `sendable` pragmas are not being cached (#22622)
remove `tfSendable` from `eqTypeFlags`
-rw-r--r--compiler/ast.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index ce5ad0f29..e82a9a293 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -641,7 +641,7 @@ const
   skError* = skUnknown
 
 var
-  eqTypeFlags* = {tfIterator, tfNotNil, tfVarIsPtr, tfGcSafe, tfNoSideEffect, tfIsOutParam, tfSendable}
+  eqTypeFlags* = {tfIterator, tfNotNil, tfVarIsPtr, tfGcSafe, tfNoSideEffect, tfIsOutParam}
     ## type flags that are essential for type equality.
     ## This is now a variable because for emulation of version:1.0 we
     ## might exclude {tfGcSafe, tfNoSideEffect}.