Edit

kc3-lang/kc3/test/ikc3/defmodule.out.expected

Branch :

  • test/ikc3/defmodule.out.expected
  • defmodule Empty do end
    Empty
    defmodule Const do
      def a = 1
      def b = 10000000000000000000000000000000000000000000000000
    end
    Const
    Const.a
    1
    Const.b
    10000000000000000000000000000000000000000000000000
    defmodule Double do
      def double = fn (x) { x * 2 }
    end
    Double
    Double.double(21)
    42
    defmodule Plop do
      def a = 1
      def b = fn () { a }
    end
    Plop
    Plop.a
    1
    Plop.b
    Plop.fn () { a }
    Plop.b()
    1
    defmodule S32 do
      def cast = cfn S32 "s32_init_cast" (Result, Sym, Tag)
    end
    S32