www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Illegal operation: property syntax and argument defaults

The compiler crashes with an illegal operation when given this:

     class Test {
         static Test test(int q=0) {
             return null;
         }
     }

     Test foo() {
         return Test.test;
     }

(it makes no difference whether Test.test is static or not)

  -- andy
Jun 24 2004