Rejig the way in which generic default method signatures are checked
- Check GenericSig in tcClassSigs, along with TypeSig - Add the generic default methods to the type envt - Look them up via tcLookupId in TcClassDcl.tcDefMeth Much nicer!
Showing
- compiler/iface/BuildTyCl.lhs 2 additions, 2 deletionscompiler/iface/BuildTyCl.lhs
- compiler/main/HscTypes.lhs 3 additions, 1 deletioncompiler/main/HscTypes.lhs
- compiler/typecheck/TcClassDcl.lhs 32 additions, 46 deletionscompiler/typecheck/TcClassDcl.lhs
- compiler/typecheck/TcRnDriver.lhs 6 additions, 10 deletionscompiler/typecheck/TcRnDriver.lhs
- compiler/typecheck/TcTyClsDecls.lhs 27 additions, 11 deletionscompiler/typecheck/TcTyClsDecls.lhs
- compiler/typecheck/TcTyDecls.lhs 7 additions, 8 deletionscompiler/typecheck/TcTyDecls.lhs
Loading
Please register or sign in to comment