summary refs log tree commit diff stats
path: root/tests/arc
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2023-04-08 04:18:09 +0800
committerGitHub <noreply@github.com>2023-04-07 22:18:09 +0200
commita37a83cbff89867be9cbc5ba2f50c37e99efe0f1 (patch)
tree9b9345260e258a4a7511a002f3fd6963a6696a48 /tests/arc
parent814d3e6818b6c4ed976818ecf525a599502e080e (diff)
downloadNim-a37a83cbff89867be9cbc5ba2f50c37e99efe0f1.tar.gz
fixes #21617; createTypeBoundOps with PContext in order to instantiate generics (#21619)
* fixes #21617; createTypeBoundOps with PContext in order to instantiate generics

* keep idgen
Diffstat (limited to 'tests/arc')
-rw-r--r--tests/arc/tarcmisc.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim
index b08669774..1404f54a1 100644
--- a/tests/arc/tarcmisc.nim
+++ b/tests/arc/tarcmisc.nim
@@ -600,6 +600,7 @@ block: # bug #19857
 
 import std/options
 
+# bug #21592
 type Event* = object
   code*: string
 
@@ -608,3 +609,8 @@ type App* = ref object of RootObj
 
 method process*(self: App): Option[Event] {.base.} =
   raise Exception.new_exception("not impl")
+
+# bug #21617
+type Test2 = ref object of RootObj
+
+method bug(t: Test2): seq[float] {.base.} = discard