diff options
Diffstat (limited to 'tiger-compiler/tests/bind/invalid-type-redefinition.tig')
| -rw-r--r-- | tiger-compiler/tests/bind/invalid-type-redefinition.tig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tiger-compiler/tests/bind/invalid-type-redefinition.tig b/tiger-compiler/tests/bind/invalid-type-redefinition.tig new file mode 100644 index 0000000..cfe9496 --- /dev/null +++ b/tiger-compiler/tests/bind/invalid-type-redefinition.tig @@ -0,0 +1,10 @@ +/* public. */ +/* This is invalid, since there are two types with the same name + in the same (consecutive) batch of mutually recursive types. + See also shadowing-types-separate */ +let + type a = int + type a = string +in + 0 +end |
