ghkweon / dwscript

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

"new" does not work with type aliases #484

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
type
   TMyClass = class
   public
      constructor Create(x: integer);
   end;

   TAlias = TMyClass;

   var myObj := new TAlias(5);

The compiler says that this is not a class type.

Original issue reported on code.google.com by masonwhe...@gmail.com on 31 Jul 2014 at 9:51

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r2578.

Original comment by zar...@gmail.com on 5 Aug 2014 at 1:10