forked from GitHub/gf-core
added some tests in the testsuite for the compiler
This commit is contained in:
8
testsuite/compiler/check/restricted-inheritance/A.gf
Normal file
8
testsuite/compiler/check/restricted-inheritance/A.gf
Normal file
@@ -0,0 +1,8 @@
|
||||
abstract A = {
|
||||
|
||||
cat A1; A2 ;
|
||||
fun f1 : A1 ;
|
||||
f2 : A1 ;
|
||||
g : A2 ;
|
||||
|
||||
}
|
||||
3
testsuite/compiler/check/restricted-inheritance/B.gf
Normal file
3
testsuite/compiler/check/restricted-inheritance/B.gf
Normal file
@@ -0,0 +1,3 @@
|
||||
abstract B = A - [A1] ** {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user