diff --git a/test/test_opcall.d b/test/test_opcall.d new file mode 100644 index 000000000000..a945aa14dc8d --- /dev/null +++ b/test/test_opcall.d @@ -0,0 +1,15 @@ +import std.stdio; + +struct Test +{ + void opCall() if false + { + // No return needed since the method is now void + } +} + +void main() +{ + auto instance = Test(); // This should be interpreted as a constructor call + writeln("Test instance created successfully."); +}