Skip to content

Commit a39c7ae

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 0819d37 commit a39c7ae

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
@@ -1544,7 +1544,7 @@ private static string Describe(int i)
15441544
return ""two"";
15451545
}
15461546
1547-
return default;
1547+
return null;
15481548
}
15491549
}");
15501550
}

0 commit comments

Comments
 (0)