tests: inventory and verify source rejection twins
This commit is contained in:
1 parent
09fbf8a5bc
commit
e4aacef48c
28 files changed
+1092
-8
No files matched your search
@@ -1,10 +1,11 @@
|
||||
// The verifier, not the frontend, rejects a struct that contains itself by value (E1003).
|
||||
// A by-value cycle retains E1003 in source declaration validation.
|
||||
// expect: reject E1003
|
||||
// phase: 6
|
||||
// spec: docs/spec/15-source-language.md
|
||||
// AIR twin: phase0/reject/recursive_type.air
|
||||
module demo.recursive
|
||||
|
||||
struct Node {
|
||||
struct Node { // diagnostic here
|
||||
value: u64,
|
||||
next: Node,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user