Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumC#nullable reference typesSingle-choice MCQ

In a nullable-aware context, why does the compiler still warn at the marked line?

#nullable enable public string FindName(int id) { string? name = Lookup(id); // may return null return name; // warning here }