http://d.puremagic.com/issues/show_bug.cgi?id=4225


yebblies <yebbl...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice                         |rejects-valid
                 CC|                            |yebbl...@gmail.com
           Platform|Other                       |All
            Version|1.057                       |D2


--- Comment #3 from yebblies <yebbl...@gmail.com> 2012-02-04 18:59:17 EST ---
Compiles without error on D1 (1.072)

Give a forward reference error with D2 (2.058)

struct Foo {
    enum x = Foo();

    static Foo opCall() {
        return Foo.init;
    }
}

testx.d(5): Error: forward reference to type Foo
testx.d(5): Error: cannot implicitly convert expression (Foo()) of type Foo to
Foo

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to