renan-guimaraes / dwscript

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

Bad name in exception message #392

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Unit DWSComp, method:

procedure TdwsUnit.ExposeInstanceToUnit(const AName, AClassType: String;
  AInstance: TObject);

In line:

  if not (typSym is TTypeSymbol) then
    raise Exception.CreateFmt(UNT_DatatypeUnknown, [Name]);

variable Name contain TdwsUnit object name. IMHO should be AClassType in this 
place.

Original issue reported on code.google.com by jac....@gmail.com on 14 May 2013 at 11:59

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

Original comment by zar...@gmail.com on 15 May 2013 at 8:26