Skip to content

Kind inference error in classes

This is rejected today, but it shouldn't be:

class C a where
  meth :: Proxy (a :: k)

It's the kind signature that kills it.

Expected solution: change tcImplicitTKBndrs to kcImplicitTKBndrs in kcHsKindSig.

Trac metadata
Trac field Value
Version 8.6.1
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information