aboutsummaryrefslogtreecommitdiff
path: root/testsuite/runnable/generic_record.elna
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/runnable/generic_record.elna')
-rw-r--r--testsuite/runnable/generic_record.elna8
1 files changed, 4 insertions, 4 deletions
diff --git a/testsuite/runnable/generic_record.elna b/testsuite/runnable/generic_record.elna
index 4164c3d..1fff97d 100644
--- a/testsuite/runnable/generic_record.elna
+++ b/testsuite/runnable/generic_record.elna
@@ -5,15 +5,15 @@ type
end
Stack#[T] = record
- items: T;
+ items: ^T;
top: Word
end
var
- s: Stack#[^File]
+ s: Stack#[File]
f: File
-proc push#[T](target: ^Stack#[T]; value: T)
+proc push#[T](target: ^Stack#[T]; value: ^T)
begin
target^.items := value;
target^.top := target^.top + 1u
@@ -21,7 +21,7 @@ return
begin
s.top := 0u;
- push#[^File](@s, @f);
+ push#[File](@s, @f);
assert(s.top = 1u);
assert(s.items = @f)
end.