diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
| commit | bd44c9eaef1f4dcbbd98d4489885566b6c7e5138 (patch) | |
| tree | d664ec481b99e04386c47526b56085320edd9cde /t | |
| parent | fd21f31e654a97027799f0fdf3518fd639415121 (diff) | |
support for type alias
Diffstat (limited to 't')
| -rw-r--r-- | t/trivial.pas | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/trivial.pas b/t/trivial.pas index 68e4a53..5d20d5f 100644 --- a/t/trivial.pas +++ b/t/trivial.pas @@ -169,3 +169,17 @@ var a,b:^void; begin end; + +function alias_test():integer; +type + a1=integer; + a2=array[0..9] of a1; + a3=array[0..9] of a2; +var + i:a1; + arr:a3; +begin + i:=4; + arr[i][i]:=i; + alias_test:=arr[i][i]*i; +end; |
