Parsing error

Nicolas Sicard dransic at gmail.com
Wed Dec 26 05:08:37 PST 2012


I'm not sure whether this has been reported:
---
struct Foo {
	void bar(T)() {}
	void baz() {}
}

void main() {
	Foo foo;
	(foo).bar!int();   // Compiler parsing error
	((foo)).bar!int(); // OK
	foo.bar!int();     // OK
	(foo).baz();       // OK
}
---
DMD 2.060 on OS X.

Thanks,
Nicolas


More information about the Digitalmars-d mailing list