diff options
| author | Andrea Corallo | 2020-12-15 23:53:29 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-12-21 20:22:03 +0100 |
| commit | 07b75deea9febd2cb6fd4d3467e909df341e96fb (patch) | |
| tree | 4059a350554164e34a28b72d645eaec49b34f51f /test/src | |
| parent | 23791cf74da9c2e6369f2c15ef180ef2a8c21656 (diff) | |
| download | emacs-07b75deea9febd2cb6fd4d3467e909df341e96fb.tar.gz emacs-07b75deea9febd2cb6fd4d3467e909df341e96fb.zip | |
Enhance type inference constraining function arguments
* lisp/emacs-lisp/comp.el: Add some commentary.
(comp-cond-cstrs-target-mvar): Rename and update docstring.
(comp-add-cond-cstrs): Update to use
`comp-cond-cstrs-target-mvar'.
(comp-emit-call-cstr, comp-lambda-list-gen, comp-add-call-cstr):
New functions.
(comp-add-cstrs): Call `comp-add-call-cstr'.
* test/src/comp-tests.el (comp-tests-type-spec-tests): Update two
type specifier tests.
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/comp-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 4ea8dbbadb3..a3e887bde95 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -872,14 +872,14 @@ Return a list of results." | |||
| 872 | (if (= x 3) | 872 | (if (= x 3) |
| 873 | 'foo | 873 | 'foo |
| 874 | x)) | 874 | x)) |
| 875 | (or (member foo) (integer * 2) (integer 4 *))) | 875 | (or (member foo) marker number)) |
| 876 | 876 | ||
| 877 | ;; 13 | 877 | ;; 13 |
| 878 | ((defun comp-tests-ret-type-spec-8-4-f (x y) | 878 | ((defun comp-tests-ret-type-spec-8-4-f (x y) |
| 879 | (if (= x y) | 879 | (if (= x y) |
| 880 | x | 880 | x |
| 881 | 'foo)) | 881 | 'foo)) |
| 882 | t) | 882 | (or (member foo) marker number)) |
| 883 | 883 | ||
| 884 | ;; 14 | 884 | ;; 14 |
| 885 | ((defun comp-tests-ret-type-spec-9-1-f (x) | 885 | ((defun comp-tests-ret-type-spec-9-1-f (x) |