Fix optimization of clone, (clone)
parent
1f02696b08
commit
10b75276ff
|
@ -263,7 +263,10 @@ generic-comparison-ops [
|
|||
] +outputs+ set-word-prop
|
||||
|
||||
! the output of clone has the same type as the input
|
||||
{ clone (clone) } [ [ ] +outputs+ set-word-prop ] each
|
||||
{ clone (clone) } [
|
||||
[ clone f >>literal f >>literal? ]
|
||||
+outputs+ set-word-prop
|
||||
] each
|
||||
|
||||
\ slot [
|
||||
dup literal?>>
|
||||
|
|
|
@ -566,3 +566,5 @@ M: integer infinite-loop infinite-loop ;
|
|||
[ V{ tuple } ] [ [ tuple-layout <tuple> ] final-classes ] unit-test
|
||||
|
||||
[ ] [ [ instance? ] final-classes drop ] unit-test
|
||||
|
||||
[ f ] [ [ V{ } clone ] final-info first literal?>> ] unit-test
|
||||
|
|
Loading…
Reference in New Issue