Skip to content

Commit 6e0b189

Browse files
committed
Remove experimental warning when using generics
1 parent 264633b commit 6e0b189

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

src/comp/CtxRed.hs

+2-9
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import Data.List(partition, (\\))
44
import Control.Monad(when)
55
import PFPrint
66
import Id
7-
import PreIds(tmpTyVarIds, idGeneric)
8-
import Error(internalError, EMsg, ErrorHandle, bsWarning, bsError, ErrMsg(WExperimental))
7+
import PreIds(tmpTyVarIds)
8+
import Error(internalError, EMsg, ErrorHandle, bsWarning, bsError)
99
import Flags(Flags)
1010
import CSyntax
1111
import Type
@@ -367,13 +367,6 @@ ctxRedCQType = ctxRedCQType' False
367367
ctxRedCQType' :: Bool -> CQType -> TI (Subst, CQType)
368368
ctxRedCQType' isInstHead cqt = do
369369

370-
-- raise an experimental warning about uses of generics
371-
let CQType cqs _ = cqt
372-
case [p | p@(CPred {cpred_tc = CTypeclass i}) <- cqs,
373-
qualEq i idGeneric] of
374-
p : _ -> twarn (getPosition p, WExperimental "generics")
375-
[] -> return ()
376-
377370
-- find out what variables were bound prior to here
378371
prev_bound_tvs <- getBoundTVs
379372

testsuite/bsc.typechecker/generics/GenericNegativeTests.bs.bsc-out.expected

-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
checking package dependencies
22
compiling GenericNegativeTests.bs
3-
Warning: "GenericNegativeTests.bs", line 16, column 12: (S0028)
4-
Support for generics in this release is not complete or has not been tested
5-
Warning: "GenericNegativeTests.bs", line 36, column 10: (S0028)
6-
Support for generics in this release is not complete or has not been tested
73
Error: "GenericNegativeTests.bs", line 26, column 10: (T0020)
84
Type error at:
95
refl

0 commit comments

Comments
 (0)