summary refs log tree commit diff stats
path: root/tests/js/t11166.nim
blob: e98ccda10c81edb39631401e2906cc4d16b07ccf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
discard """
  output: '''
test1
test2
'''
"""

import jsffi

type
  C = object
    props: int

var c: C

when compiles(c.props):
  echo "test1"

when not compiles(d.props):
  echo "test2"