Add Core.Form to prelude (#6745)

Unfortunately, currently it has to be a function rather than a constant.
This commit is contained in:
Geoff Romer
2026-02-19 19:26:56 +00:00
committed by GitHub
parent e00394ea92
commit 6a3529f4b5
9 changed files with 87 additions and 0 deletions
@@ -454,6 +454,10 @@ constexpr BuiltinInfo BoolMakeType = {"bool.make_type",
constexpr BuiltinInfo MaybeUnformedMakeType = {
"maybe_unformed.make_type", ValidateSignature<auto(Type)->Type>};
// Returns the `Form` type.
constexpr BuiltinInfo FormMakeType = {"form.make_type",
ValidateSignature<auto()->Type>};
// Converts between char types, with a diagnostic if the value doesn't fit.
constexpr BuiltinInfo CharConvertChecked = {
"char.convert_checked",