forked from alex-eg/sex
take a docstring on a sum
record, struct and enum take one; sum read it where its variants go.
This commit is contained in:
@@ -550,6 +550,9 @@ ahead of its pub forms."
|
||||
(test "a private one is solved where it is"
|
||||
'()
|
||||
(interface-of "(var n _ 42)"))
|
||||
(test-assert "a pub sum's variants are looked at past its docstring"
|
||||
(interface-reports? "(record cell ((v int))) (pub sum s \"doc\" ((a ((c cell))) (b ())))"
|
||||
"held by value"))
|
||||
(test-assert "held by value it is an error"
|
||||
(interface-reports? "(record cell ((v int))) (pub record shape ((c cell)))"
|
||||
"held by value"))
|
||||
|
||||
Reference in New Issue
Block a user