#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
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 Changed 16 years ago by
Added ane standard test to chech this ticket at
https://www.tol-project.org/browser/tolp/trunk/tol_tests/tol/kernel/Class/test05/test.tol
Note: See
TracTickets for help on using
tickets.
(In [876]) Fixes #674