Skip to content

Commit 96a138b

Browse files
committed
fix(analysis): only try to pick annotations from forms
1 parent 36bbb4c commit 96a138b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

elsa-analyser.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ The BINDING should have one of the following forms:
116116
- place ; initial is nil
117117
- (place) ; initial is nil
118118
- (place initial-value)"
119-
(let* ((annotation (oref binding annotation))
119+
(let* ((annotation (when (elsa-form-p binding)
120+
(oref binding annotation)))
120121
(annotation-type (and annotation
121122
(elsa--make-type (nth 2 annotation)))))
122123
(cond

0 commit comments

Comments
 (0)