stdlib: Inference engine caught some type errors! Also added some hot garbage.

This commit is contained in:
2025-07-18 05:34:03 -04:00
parent 8732cca3f9
commit 0f9044bb3e
9 changed files with 129 additions and 55 deletions

View File

@@ -32,12 +32,13 @@ fn noop () -> bool {
} else break loop if false {
} else break true;
} else break true
}
fn while_else() -> i32 {
let (conditional, pass, fail) = (true, 10, 100 as i32);
while conditional {
pass
pass;
} else {
fail
}
@@ -66,7 +67,7 @@ fn if_else() -> i32 {
mod horrible_imports {
mod foo {
use super::{bar::*, baz::*};
struct Foo(&Foo, &Bar)
struct Foo(&Bar, &Baz)
}
mod bar {
use super::{foo::*, baz::*};