www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - error msg not understood

reply Manfred Nowak <svv1999 hotmail.com> writes:
constructor dfa.Action.this (State ) does not match argument types ()
Error: expected 1 arguments, not 0

problem: the constructor is not called explicitely.

-manfred
Aug 04 2005
parent "Regan Heath" <regan netwin.co.nz> writes:
On Fri, 5 Aug 2005 04:48:55 +0000 (UTC), Manfred Nowak  
<svv1999 hotmail.com> wrote:
 constructor dfa.Action.this (State ) does not match argument types ()
 Error: expected 1 arguments, not 0

 problem: the constructor is not called explicitely.
It is probably an invisible super() call in one of your constructors or perhaps an invisible super() call in an invisible constructor. In other words you have a class, derived from a class, that only has one constructor, and it expects a State. It would be nice if the error message said something about super() if it is indeed the cause. Regan
Aug 04 2005