Add var domain test
Signed-off-by: szdytom <szdytom@qq.com>
This commit is contained in:
parent
db6c6cc7aa
commit
94e9f84d8d
14
tests/fail/logic-var-domain.ac
Normal file
14
tests/fail/logic-var-domain.ac
Normal file
@ -0,0 +1,14 @@
|
||||
struct {
|
||||
|
||||
struct A() {};
|
||||
|
||||
T1 = Fn(h: A) -> A {
|
||||
x = h;
|
||||
return h;
|
||||
};
|
||||
|
||||
T2 = Fn() -> A {
|
||||
return x;
|
||||
};
|
||||
|
||||
} main;
|
Loading…
x
Reference in New Issue
Block a user