renan-guimaraes / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

Insufficient type-checking (?) #359

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Code:

Type

 TObj = class

  Function FF : String; // must be class function
  Begin

   Result := 'test';

  End;

  Class Property Func : Function : String Read (FF);

 End;

PrintLn(TObj.Func());

Output:

Runtime Error: Could not convert variant of type (Int64) into type (Unknown) 
[line: 16, column: 1]

Original issue reported on code.google.com by kazantse...@mail.ru on 7 Apr 2013 at 6:12

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1892.

Original comment by zar...@gmail.com on 8 Apr 2013 at 8:30