Verified Commit f951e082 authored by Camil Staps's avatar Camil Staps
Browse files

Hide @type warning for class members (which always have a type)

parent 424d71f0
......@@ -288,7 +288,7 @@ where
pd_rewriterules dcl defs st
= [( setLine dcl pos {zero & name=Just id.id_name}
, let doc = findDoc hideIsUsedReturn parseFunctionDoc id st in
if (needsTypeWarning doc)
if (isNothing (findTypeSpec id defs) && needsTypeWarning doc)
(trace_n $ "Doc warning: expected @type for '" +++ id.id_name +++ "'")
{ zero
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment