浏览代码

* test fixed, operator overloading is now more strict

git-svn-id: trunk@1414 -
florian 20 年之前
父节点
当前提交
6ec54bc2c9
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      tests/webtbs/tw2481.pp

+ 6 - 0
tests/webtbs/tw2481.pp

@@ -21,6 +21,12 @@ Var
     B.A := V;
   End;
 
+  Operator := (V : Extended) B : TMoo;
+  Begin
+    B:=TMoo.Create;
+    B.A := V;
+  End;
+
 Constructor TMoo.Init;
 Begin