Fork of daniellemaywood.uk/gleam — Wasm codegen work
401 B
23 lines
1---
2source: test-output/src/tests/echo.rs
3expression: output
4---
5--- main.gleam ----------------------
6// SPDX-License-Identifier: Apache-2.0
7// SPDX-FileCopyrightText: 2024 The Gleam contributors
8
9pub fn main() {
10 echo fn(n) { n + 1 }
11 echo private
12}
13
14fn private() {
15 1
16}
17
18
19--- gleam run output ----------------
20[90msrc/main.gleam:5[39m
21//fn(a) { ... }
22[90msrc/main.gleam:6[39m
23//fn() { ... }