Skip to content

Commit

Permalink
Remove experimental warning when using generics
Browse files Browse the repository at this point in the history
  • Loading branch information
krame505 authored and quark17 committed Feb 17, 2024
1 parent 04c1541 commit e659223
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
11 changes: 2 additions & 9 deletions src/comp/CtxRed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import Data.List(partition, (\\))
import Control.Monad(when)
import PFPrint
import Id
import PreIds(tmpTyVarIds, idGeneric)
import Error(internalError, EMsg, ErrorHandle, bsWarning, bsError, ErrMsg(WExperimental))
import PreIds(tmpTyVarIds)
import Error(internalError, EMsg, ErrorHandle, bsWarning, bsError)
import Flags(Flags)
import CSyntax
import Type
Expand Down Expand Up @@ -367,13 +367,6 @@ ctxRedCQType = ctxRedCQType' False
ctxRedCQType' :: Bool -> CQType -> TI (Subst, CQType)
ctxRedCQType' isInstHead cqt = do

-- raise an experimental warning about uses of generics
let CQType cqs _ = cqt
case [p | p@(CPred {cpred_tc = CTypeclass i}) <- cqs,
qualEq i idGeneric] of
p : _ -> twarn (getPosition p, WExperimental "generics")
[] -> return ()

-- find out what variables were bound prior to here
prev_bound_tvs <- getBoundTVs

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
checking package dependencies
compiling GenericNegativeTests.bs
Warning: "GenericNegativeTests.bs", line 16, column 12: (S0028)
Support for generics in this release is not complete or has not been tested
Warning: "GenericNegativeTests.bs", line 36, column 10: (S0028)
Support for generics in this release is not complete or has not been tested
Error: "GenericNegativeTests.bs", line 26, column 10: (T0020)
Type error at:
refl
Expand Down

0 comments on commit e659223

Please sign in to comment.