Explorar o código

* System() function scope problem

peter %!s(int64=21) %!d(string=hai) anos
pai
achega
0f15bfeb7c
Modificáronse 2 ficheiros con 20 adicións e 0 borrados
  1. 7 0
      tests/webtbs/tw2984.pp
  2. 13 0
      tests/webtbs/uw2984.pp

+ 7 - 0
tests/webtbs/tw2984.pp

@@ -0,0 +1,7 @@
+uses
+  uw2984;
+
+begin
+  uw2984.System('test');
+end.
+

+ 13 - 0
tests/webtbs/uw2984.pp

@@ -0,0 +1,13 @@
+unit uw2984;
+interface
+
+procedure System(const s:string);
+
+implementation
+
+procedure System(const s:string);
+begin
+  writeln(s);
+end;
+
+end.