mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
fix(compiler): infinite recursion bug of derefine
This commit is contained in:
parent
3aeb63f51b
commit
7389f68e3e
4 changed files with 21 additions and 3 deletions
|
@ -23,7 +23,7 @@
|
|||
'''
|
||||
'''erg
|
||||
assert [1, 1, 2].dedup() == [1, 2]
|
||||
assert [0.0, 0.1, 10.0, 20.0, 20.1].dedup((lhs, rhs) -> abs(lhs - rhs) < 1.0) == [0.0, 10.0, 20.1]
|
||||
assert [0.0, 0.1, 10.0, 20.0, 20.1].dedup((lhs, rhs) -> abs(lhs - rhs) < 1.0) == [0.1, 10.0, 20.1]
|
||||
'''
|
||||
dedup: |T: Type|(self: Array(T, _), same_bucket := (T, T) -> Bool) -> Array(T, _)
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue