A bug with DMD 2.054

BizarreCake bizarrecake at gmail.com
Fri Jul 15 03:32:05 PDT 2011


While coding, I've stumbled upon this weird bug.
Apparently, this code snippet right here:

	module program;

	import std.stdio;

	class Foo {
		void bar() {
			writeln( "Foo Bar!" );
		}
	}

	void main() {
		new Foo().bar();
	}

Doesn't work.
It outputs the following error:
    program.d(12): found '.' when expecting ';' following statement

Line 12 is: new Foo().bar();


More information about the Digitalmars-d-bugs mailing list