[GHC] #10119: Class methods must always mention the class variable

#10119: Class methods must always mention the class variable -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: Compiler | Version: 7.10.1-rc2 (Type checker) | Operating System: Unknown/Multiple Keywords: | Type of failure: None/Unknown Architecture: | Blocked By: Unknown/Multiple | Related Tickets: #7854, #10118 Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- As mentioned in comment:9:ticket:7854, GHC wrongfully accepts the following program. It should reject it, because `op` doesn't mention any type variables of `Foo` (the method context doesn't count). {{{#!hs module ShouldFail where class Foo a where op :: Eq a => Int }}} I'm working on it. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10119 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10119: Class methods must always mention the class variable -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.12.1 Component: Compiler (Type | Version: 7.10.1-rc2 checker) | Keywords: Resolution: | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | typecheck/should_fail/T10119 Related Tickets: #7854, #10118 | Blocking: | Differential Revisions: D687 -------------------------------------+------------------------------------- Changes (by thomie): * status: new => patch * testcase: => typecheck/should_fail/T10119 * differential: => D687 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10119#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10119: Class methods must always mention the class variable -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.12.1 Component: Compiler (Type | Version: 7.10.1-rc2 checker) | Keywords: Resolution: | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | typecheck/should_fail/T10119 Related Tickets: #7854, #10118 | Blocking: | Differential Revisions: Phab:D687 -------------------------------------+------------------------------------- Changes (by thomie): * differential: D687 => Phab:D687 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10119#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10119: Class methods must always mention the class variable -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: patch Priority: normal | Milestone: 7.12.1 Component: Compiler (Type | Version: 7.10.1-rc2 checker) | Keywords: Resolution: | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | typecheck/should_fail/T10119 Related Tickets: #7854, #10118 | Blocking: | Differential Revisions: Phab:D687 -------------------------------------+------------------------------------- Comment (by thomie): Fixed by f66e0e695b0377c469fbe877d4850fc0ebca2010 (#7854). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10119#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10119: Class methods must always mention the class variable -------------------------------------+------------------------------------- Reporter: thomie | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: Compiler (Type | Version: 7.10.1-rc2 checker) | Keywords: Resolution: fixed | Architecture: Operating System: Unknown/Multiple | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #7854, #10118 | Differential Revisions: Phab:D687 -------------------------------------+------------------------------------- Changes (by thomie): * status: patch => closed * testcase: typecheck/should_fail/T10119 => * resolution: => fixed Comment: Closing -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10119#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC