Skip to content

Commit 1ca9791

Browse files
andorpAnabra
andauthored
Update grin/src/Grin/Lint.hs
Co-Authored-By: Peter Podlovics <peter.d.podlovics@gmail.com>
1 parent 81c973c commit 1ca9791

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

grin/src/Grin/Lint.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ lint warningKinds mTypeEnv exp@(Program exts _) =
317317
expectedPatType <- normalizeType <$> mTypeOfValTE typeEnv lpat
318318
lhsType <- normalizeType <$> extract leftExp
319319
pure $ do -- Lint
320-
-- NOTE: This can still give false positive errors, because bottom-up typing can only approximate the result of HPT.
321320
when (subType expectedPatType lhsType == Just False) $ do
322321
warning Semantics $ [beforeMsg $ unwords
323322
["Invalid pattern match for", plainShow lpat ++ "." , "Expected pattern of type:", plainShow expectedPatType ++ ",", "but got:", plainShow lhsType]]

0 commit comments

Comments
 (0)