on master help sign in
Show correct numbers when type annotation is too short
commit70cedd3b5b4070e62ff19df30c1785f5348beb19 authorEvan Czaplicki <evancz@users.noreply.github.com> dateTue 6 Mar 2018, 14:04 (9 years ago) parent4b25980
1 file changed+1−1
compiler/src/Reporting/Error/Canonicalize.hs+1−1
compiler/src/Reporting/Error/Canonicalize.hs+1−1
@@ -147,7 +147,7 @@ toReport source err =
147147 case err of
148148 AnnotationTooShort region name index leftovers ->
149149 let
150− numTypeArgs = Index.toHuman index
150+ numTypeArgs = Index.toMachine index
151151 numDefArgs = numTypeArgs + leftovers
152152 in
153153 Report.Report "BAD TYPE ANNOTATION" region [] $