Skip to content
Snippets Groups Projects
Commit 37a3f8af authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 1997-11-10 17:06:45 by simonm]

add test for declarations of non-existent methods
parent ab8b9316
No related merge requests found
module ShouldFail where
--!!! declaring a default method in a class that doesn't have that method.
class Foo a where
op :: a -> a
op2 x = x -- Bogus declaration
tcfail077.hs:8: Class `Foo' does not have a method `op2'
Compilation had errors
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment