summaryrefslogtreecommitdiff
path: root/testsuite/tests/roles/should_fail/Roles10.stderr
blob: 1c636580b9f648d50612a0c03a3feb1c28f04a28 (plain)
1
2
3
4
5
6
7
8
9
10

Roles10.hs:16:12:
    Could not coerce from ‛Bool’ to ‛Char’
      because ‛Bool’ and ‛Char’ are different types.
      arising from the coercion of the method ‛meth’ from type
                   ‛Int -> F Int’ to type ‛Age -> F Age’
    Possible fix:
      use a standalone 'deriving instance' declaration,
        so you can specify the instance context yourself
    When deriving the instance for (C Age)