diff --git a/spec/compiler/parser/parser_doc_spec.cr b/spec/compiler/parser/parser_doc_spec.cr index fdcbbeebea69..14322436082c 100644 --- a/spec/compiler/parser/parser_doc_spec.cr +++ b/spec/compiler/parser/parser_doc_spec.cr @@ -72,6 +72,7 @@ describe "Parser doc" do .body.as(Crystal::Expressions) .expressions.each do |exp| exp.as(Crystal::TypeDeclaration) + .var.as(Crystal::Var) .doc.should eq("This is Foo.\nUse it well.") end end