Missing trailing } still compiles under DMD1.057
Lars T. Kyllingstad
public at kyllingen.NOSPAMnet
Mon Apr 12 02:48:47 PDT 2010
Please report bugs here:
http://d.puremagic.com/issues/
This newsgroup is just a feed from Bugzilla.
-Lars
Sam Hu wrote:
> Given below code:
>
> module uniword;
>
> import std.c.stdio;
> import std.c.windows.windows;
>
> import std.stdio;
> import *;
>
> void main()
> {
>
> testFoo;
>
> }
> struct Foo
> {
> int a;
> static Foo opCall(int a)
> {
> Foo s;
> s.a=a;
> return s;
> }
> }
>
> void testFoo()
> {
> Foo x=Foo(10);
> writefln("%d\n",x.a);
>
> readln;
>
More information about the Digitalmars-d-bugs
mailing list