---
source: compiler-core/src/erlang/tests.rs
expression: "pub type Money { Pound(Int) }\npub fn pound(x) { Pound(x) }"
---
----- SOURCE CODE
pub type Money { Pound(Int) }
pub fn pound(x) { Pound(x) }

----- COMPILED ERLANG
-module(my@mod).
-compile([no_auto_import, nowarn_ignored, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-export([pound/1]).
-export_type([money/0]).

-type money() :: {pound, integer()}.

-file("project/test/my/mod.gleam", 2).
-spec pound(integer()) -> money().
pound(X) ->
    {pound, X}.
