From d0cf2c7117a1db2bd44eb0ca543dbeadf759ce94 Mon Sep 17 00:00:00 2001 From: Abul Hossain Khan <140191921+abulgit@users.noreply.github.com> Date: Tue, 15 Apr 2025 02:47:17 +0530 Subject: [PATCH] Add Testcases For other Fixed issues (#21231) --- compiler/test/fail_compilation/fix21165.d | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/compiler/test/fail_compilation/fix21165.d b/compiler/test/fail_compilation/fix21165.d index ad8f586d9e..1d38013b4d 100644 --- a/compiler/test/fail_compilation/fix21165.d +++ b/compiler/test/fail_compilation/fix21165.d @@ -1,10 +1,30 @@ /* TEST_OUTPUT: --- -fail_compilation/fix21165.d(9): Error: undefined identifier `foo` +fail_compilation/fix21165.d(12): Error: undefined identifier `foo` +fail_compilation/fix21165.d(16): Error: undefined identifier `foo` +fail_compilation/fix21165.d(21): Error: undefined identifier `foo` +fail_compilation/fix21165.d(30): Error: undefined identifier `foo` --- */ // Test case from Issue #21165 foo f() {} + +// Test case from Issue #21171 +foo +bar; + +// Test case from Issue #21169 +void fun( + foo x +) {} + +// Test case from Issue #21168 +enum plusOne(int x) = x + 1; + +alias fooPlusOne = + plusOne + ! + foo;