From cec7e427b7890816ce554b44ba3fb5ba5175476c Mon Sep 17 00:00:00 2001 From: Sauravhs Date: Sun, 2 Mar 2025 15:37:33 +0530 Subject: [PATCH] issue fixed --- test/test_opcall.d | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/test_opcall.d diff --git a/test/test_opcall.d b/test/test_opcall.d new file mode 100644 index 00000000000..a945aa14dc8 --- /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."); +}