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


              



                          
                                         
                                      


                                               

                                       
import exposed

type NumberHolder = object
  ival: int
  fval: float

echo "top level statements are executed!"
echo NumberHolder(ival: 10, fval: 2.0)

proc hostProgramRunsThis*(a, b: float): float =
  result = addFloats(a, b, 1.0)

let hostProgramWantsThis* = "my secret"