close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#674 closed defect (fixed)

Default Class instance should be acceptd

Reported by: Víctor de Buen Remiro Owned by: Víctor de Buen Remiro
Priority: highest Milestone: Using OOP in BSR
Component: OOP Version: 2.0.1
Severity: blocker Keywords: OOP, Class, instance
Cc:

Description

TOL syntax should accept declarations of class instances when all members has default values.

Class MyClass  
{
  Real myMethod(Real a) { a }
};

MyClass instance;

But now an error is shown and no instance is created:

ERROR: [1] MyClass no es un operador de tipo Anything

Change History (2)

comment:1 Changed 16 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: newclosed

(In [876]) Fixes #674

comment:2 Changed 16 years ago by Víctor de Buen Remiro

Note: See TracTickets for help on using tickets.