Advertisement
WarPie90

new bug - Lape

Dec 18th, 2015
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.35 KB | None | 0 0
  1. program new;
  2.  
  3. type TFoo = type Pointer;
  4.  
  5. procedure TFoo.Bar(a,b:Int32);
  6. begin
  7.   self.Bar(TPoint([a,b]));
  8. end;
  9.  
  10. procedure TFoo.Bar(p:TPoint); overload;
  11. begin
  12.   WriteLn(123);
  13. end;
  14.  
  15. var
  16.   f:TFoo;
  17. begin
  18.   f.Bar(9,9);
  19. end.
  20.  
  21. > Error: Don't know which overloaded method to call with params (record [0]Int32; [4]Int32; end) at line 7, column 7
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement