MicroHs-0.17.4.0: tests/Error114.hs
{-# LANGUAGE RoleAnnotations #-}
module Error114() where
import Data.Coerce
type role N nominal
data N a = N a
newtype Age = Age Int
type S x = N x
-- A nominal argument cannot be coerced, even through a type synonym
s :: S Age -> S Int
s = coerce