www.digitalmars.com         C & C++   DMDScript  

D - BUG: Cannot return property

reply Russ Lewis <spamhole-2001-07-16 deming-os.org> writes:
DMD 0.79 (linux)

This code fails:
	class A {
		int foo() { return 0; }
	}
	int bar(A a) {
		return a.foo;
	}
with the error "cannot implicitly convert int() to int".  Converting the 
function to
	return a.foo+0;
works.
Feb 05 2004
parent Manfred Nowak <svv1999 hotmail.com> writes:
Russ Lewis wrote:

[...]
 with the error "cannot implicitly convert int() to int".
This is already reported in <bv182e$fka$1 digitaldaemon.com>. So long.
Feb 05 2004