summaryrefslogtreecommitdiff
path: root/testsuite/tests/roles/should_compile/Roles4.hs
blob: d7aa78f7b7f03e1857d63acd54893881eb9c6ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
{-# LANGUAGE RoleAnnotations #-}

module Roles4 where

type role C1 nominal
class C1 a where
  meth1 :: a -> a

type Syn1 a = [a]

class C3 a where
  meth3 :: a -> Syn1 a