---
source: compiler-core/src/erlang/tests.rs
expression: "pub fn negate(x) {\n  !x\n}"
---
----- SOURCE CODE
pub fn negate(x) {
  !x
}

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

-file("project/test/my/mod.gleam", 1).
-spec negate(boolean()) -> boolean().
negate(X) ->
    not X.
