diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-04-01 23:08:45 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-01 17:08:45 +0200 |
commit | a80f1a324fff0b2af47c0766750b3188bcab8041 (patch) | |
tree | 49ba2c45bdafa566acf5fb30b0c77244431117fc /tests/arc | |
parent | 1c7fd717206c79be400f81a05eee771823b880ca (diff) | |
download | Nim-a80f1a324fff0b2af47c0766750b3188bcab8041.tar.gz |
fixes #21592; create type bound operations for calls in the method dispatcher for ORC (#21594)
* fixes #21592; create type operations for the method dispatcher * add a test case
Diffstat (limited to 'tests/arc')
-rw-r--r-- | tests/arc/tarcmisc.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/arc/tarcmisc.nim b/tests/arc/tarcmisc.nim index 1ae1782a4..b08669774 100644 --- a/tests/arc/tarcmisc.nim +++ b/tests/arc/tarcmisc.nim @@ -597,3 +597,14 @@ block: # bug #19857 let res = v.toF() foo() + +import std/options + +type Event* = object + code*: string + +type App* = ref object of RootObj + id*: string + +method process*(self: App): Option[Event] {.base.} = + raise Exception.new_exception("not impl") |