Skip to content

Commit 6537a0f

Browse files
committed
Fix Issue1244 test: Return Nothing in String-returning function → return null, not return default
String is a reference type so Nothing converts to null (not default). Confirmed by ParameterTests.cs:35 which has the same pattern. https://claude.ai/code/session_01AkwUvu3XuCdj3D4axoX4UX
1 parent 969c73a commit 6537a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/CSharp/StatementTests/MethodStatementTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1624,7 +1624,7 @@ private static string Describe(int i)
16241624
return ""two"";
16251625
}
16261626
1627-
return default;
1627+
return null;
16281628
}
16291629
}");
16301630
}

0 commit comments

Comments
 (0)