Today I found a bug in my D code.
import std.stdio; // Type your code here, or load an example. void grow() { writeln("grow"); } void someFunc(bool condition) { if(condition) { void grow(); } }I tried to call the grow function, but accidentially copied the return value alongside the function name. I was wondering why this code compiles without errors. the "void grow();" becomes a no-op. In my opinion this could should not compile. Am I missing something here?
Kind Regards Benjamin Thaut