fix: refinement type assert cast bug

This commit is contained in:
Shunsuke Shibayama 2024-02-14 13:44:45 +09:00
parent 17625884b9
commit e236a65c21
7 changed files with 72 additions and 8 deletions

View file

@ -3657,6 +3657,7 @@ impl Context {
/// ```erg
/// recover_typarams(Int, Nat) == Nat
/// recover_typarams(Array!(Int, _), Array(Nat, 2)) == Array!(Nat, 2)
/// recover_typarams(Str or NoneType, {"a", "b"}) == {"a", "b"}
/// ```
/// ```erg
/// # REVIEW: should be?