Skip to content

Commit 196f901

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 f91e521 commit 196f901

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tests/CSharp/StatementTests/MethodStatementTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ private static string Describe(int i)
15871587
return ""two"";
15881588
}
15891589
1590-
return default;
1590+
return null;
15911591
}
15921592
}");
15931593
}

0 commit comments

Comments
 (0)