mirror of
https://github.com/typst/typst
synced 2025-07-26 22:07:54 +08:00
Error for empty symbol variant values
This commit is contained in:
parent
e48fe5e301
commit
91189f4061
@ -271,6 +271,14 @@ impl Symbol {
|
||||
}
|
||||
}
|
||||
|
||||
if v.1.is_empty() {
|
||||
if v.0.is_empty() {
|
||||
bail!(span, "default variant is empty");
|
||||
} else {
|
||||
bail!(span, "variant is empty: {}", v.0.repr());
|
||||
}
|
||||
}
|
||||
|
||||
seen.insert(hash, i);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user