floats iter 1.1: Literal::Float variant + canonical hex serde + drift-test anchors

This commit is contained in:
2026-05-10 14:36:08 +02:00
parent cdc9d64169
commit ec2811194b
12 changed files with 83 additions and 2 deletions
+2
View File
@@ -1698,6 +1698,7 @@ pub(crate) fn synth(
Literal::Bool { .. } => Type::bool_(),
Literal::Str { .. } => Type::str_(),
Literal::Unit => Type::unit(),
Literal::Float { .. } => Type::float(),
}),
Term::Var { name } => {
// Lookup precedence: locals → local globals → class-method
@@ -2308,6 +2309,7 @@ fn type_check_pattern(
Literal::Bool { .. } => Type::bool_(),
Literal::Str { .. } => Type::str_(),
Literal::Unit => Type::unit(),
Literal::Float { .. } => Type::float(),
};
expect_eq(expected, &lt)?;
Ok(vec![])