summary refs log blame commit diff stats
path: root/tests/js/t11166.nim
blob: e98ccda10c81edb39631401e2906cc4d16b07ccf (plain) (tree)
1
2
3
4
5
6
7
8
9






             

            





              
                       



                           
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"