瀏覽代碼

* procedure with the same name as a unit hides the unit

peter 23 年之前
父節點
當前提交
e93e4e8210
共有 2 個文件被更改,包括 16 次插入0 次删除
  1. 9 0
      tests/tbs/tb0440.pp
  2. 7 0
      tests/tbs/ub0440.pp

+ 9 - 0
tests/tbs/tb0440.pp

@@ -0,0 +1,9 @@
+uses ub0440;
+
+procedure ub0440;
+begin
+end;
+
+begin
+  ub0440;
+end.

+ 7 - 0
tests/tbs/ub0440.pp

@@ -0,0 +1,7 @@
+unit ub0440;
+interface
+const
+  a = 'test';
+  
+implementation
+end.