diff options
Diffstat (limited to 'tests/method/tvtable.nim')
-rw-r--r-- | tests/method/tvtable.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/method/tvtable.nim b/tests/method/tvtable.nim index 8d98dd42c..a1b33d6b7 100644 --- a/tests/method/tvtable.nim +++ b/tests/method/tvtable.nim @@ -1,3 +1,7 @@ +discard """ + targets: "c cpp" +""" + type FooBase = ref object of RootObj dummy: int type Foo = ref object of FooBase @@ -15,5 +19,6 @@ method bar(x: Foo2, a: float32) = proc test() = var x = new Foo2 x.bar(2.3) + doAssert x.value <= 2.3 test() \ No newline at end of file |