I had expected that the following code would crash:
It it intended?

----
import std.stdio;

class Foo {
public:
        static void test1() { }
        void test2() { }
}

void main()
{
        Foo.test1();
        /// Foo.test2(); crash as expected
        
        Foo f;
        f.test1(); /// works o.O - should crash?
        /// f.test2(); also crash - null pointer
}
----

Reply via email to