Commit 3dfd3c33 authored by's avatar
Browse files

Added more testing for #9200. (polykinds/T9200b)

parent 64859308
{-# LANGUAGE TypeFamilies, PolyKinds, DataKinds #-}
module T9200b where
--- test CUSK on closed type families
type family F (a :: k) where
F True = False
F False = True
F x = x
The first argument of ‘F’ should have kind ‘k’,
but ‘True’ has kind ‘Bool’
In the type ‘True’
In the type family declaration for ‘F’
......@@ -107,3 +107,4 @@ test('T9264', normal, compile, [''])
test('T9263', normal, run_command, ['$MAKE -s --no-print-directory T9263'])
test('T9063', normal, compile, [''])
test('T9200', normal, compile, [''])
test('T9200b', normal, compile_fail, [''])
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment