Skip to content

Commit

Permalink
disable one more test for C++
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jan 16, 2019
1 parent 5df411b commit 8947779
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/objects/tobjcov.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
discard """
action: compile
target: "c"
"""

# Covariance is not type safe:
# Note: `nim cpp` makes it a compile error (after codegen), even with:
# `var f = cast[proc (x: var TA) {.nimcall.}](cast[pointer](bp))`, which
# currently removes all the `cast` in cgen'd code, hence the compile error.

type
TA = object of RootObj
Expand Down

0 comments on commit 8947779

Please sign in to comment.