Opened 18 years ago

Closed 18 years ago

Last modified 18 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 by Víctor de Buen Remiro, 18 years ago

Resolution: → fixed
Status: new → closed

(In [876]) Fixes #674

comment:2 by Víctor de Buen Remiro, 18 years ago

Note: See TracTickets for help on using tickets.