cli: bootstrap verified std bytes and math with source imports

This commit is contained in:
dev committed 2026-10-06 14:51:10 +03:00
1 parent 268926ca0f
commit 10a370471b
52 files changed
+1000 -22

No files matched your search

@@ -0,0 +1,19 @@
// expect: run
// result: 11
// phase: 6
// spec: docs/spec/16-standard-library.md; docs/spec/15-source-language.md §13
module test.standard
import std.math;
import std.bytes;
fn equal(a: u64, b: u64) -> u64
effects []
{ return a + b; }
fn main() -> u64
effects []
{
let std: u64 = 7;
assert(std.bytes.equal(b"a", b"a"));
return equal(std, std.math.min_u64(4, 9));
}