diff options
author | trustable-code <unconfigured@null.spigotmc.org> | 2015-12-24 00:07:03 +0100 |
---|---|---|
committer | trustable-code <unconfigured@null.spigotmc.org> | 2015-12-24 00:07:03 +0100 |
commit | 3c557a014481e07c41633c693ba1b4baf0c63043 (patch) | |
tree | 0f90d973af2c4f6a384b0c938e4dd7cb0342bb1b /tests | |
parent | 86bb9d8b4768b638ccbc603c26a4b5a70343ab3e (diff) | |
download | Nim-3c557a014481e07c41633c693ba1b4baf0c63043.tar.gz |
fix issue #3550
Diffstat (limited to 'tests')
-rw-r--r-- | tests/method/tmultim8.nim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/method/tmultim8.nim b/tests/method/tmultim8.nim new file mode 100644 index 000000000..0d067b668 --- /dev/null +++ b/tests/method/tmultim8.nim @@ -0,0 +1,19 @@ + +# bug #3550 + +type + BaseClass = ref object of RootObj + Class1 = ref object of BaseClass + Class2 = ref object of BaseClass + +method test(obj: Class1, obj2: BaseClass) = + discard + +method test(obj: Class2, obj2: BaseClass) = + discard + +var obj1 = Class1() +var obj2 = Class2() + +obj1.test(obj2) +obj2.test(obj1) |