summary refs log tree commit diff stats
path: root/tests/js/tunion.nim
blob: e185495adf9a95fdafdd602a5ff39db95eca4315 (plain) (blame)
1
2
3
4
5
6
7
discard """
  errormsg: "`{.union.}` is not implemented for js backend."
"""

type Foo {.union.} = object
  as_bytes: array[8, int8]
  data: int64