mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
add test case for typechecking of lincat
This commit is contained in:
5
testsuite/compiler/check/lincat-types/Test.gf
Normal file
5
testsuite/compiler/check/lincat-types/Test.gf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
abstract Test = {
|
||||||
|
|
||||||
|
cat S;
|
||||||
|
|
||||||
|
}
|
||||||
5
testsuite/compiler/check/lincat-types/TestCnc.gf
Normal file
5
testsuite/compiler/check/lincat-types/TestCnc.gf
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
concrete TestCnc of Test = open Predef in {
|
||||||
|
|
||||||
|
lincat S = PTrue ;
|
||||||
|
|
||||||
|
}
|
||||||
1
testsuite/compiler/check/lincat-types/test.gfs
Normal file
1
testsuite/compiler/check/lincat-types/test.gfs
Normal file
@@ -0,0 +1 @@
|
|||||||
|
i -src testsuite/compiler/check/lincat-types/TestCnc.gf
|
||||||
7
testsuite/compiler/check/lincat-types/test.gfs.gold
Normal file
7
testsuite/compiler/check/lincat-types/test.gfs.gold
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
checking module TestCnc
|
||||||
|
|
||||||
|
Happened in linearization type of S in TestCnc.gf, line 3:
|
||||||
Reference in New Issue
Block a user