summaryrefslogtreecommitdiff
path: root/testsuite/tests/simplCore/should_compile/simpl009.hs
blob: 2b5fb401cb33b6ea6ba5423449c2ab1a80567e55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{-# LANGUAGE RankNTypes #-}
{-# OPTIONS_GHC -dcore-lint #-}

-- This one killed GHC 6.0, with a "panic: applyTys"
-- Only with -O, though

module ShouldCompile where

newtype R = R (forall a. a->a)

foo = case undefined of
        R f -> f ()