Skip to content

Commit 76e39a1

Browse files
committed
More intern-key-infos
1 parent 3f09842 commit 76e39a1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/code/type.lisp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@
562562
(type-intersection (key-info-type key1)
563563
(key-info-type key2)))
564564
keys)))
565-
keys))
565+
(intern-key-infos keys)))
566566
:allowp (and (fun-type-allowp type1)
567567
(fun-type-allowp type2))
568568
:returns rtype

tests/type.pure.lisp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,8 +1036,10 @@
10361036
(typep (return x) 't)))
10371037
((10) 10)))
10381038

1039-
(with-test (:name :function-simple-union)
1039+
(with-test (:name :function-simple-union/intersection)
10401040
(let ((type (sb-kernel:specifier-type
10411041
'(function (sequence &key (start integer) (end integer)) sequence))))
10421042
(assert (eq type
1043-
(sb-kernel::function-simple-union2-type-method type type)))))
1043+
(sb-kernel::function-simple-union2-type-method type type)))
1044+
(assert (eq type
1045+
(sb-kernel::function-simple-intersection2-type-method type type)))))

0 commit comments

Comments
 (0)