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

With nullable reference types enabled, why does this code emit a warning on the second line?

#nullable enable string? s = GetName(); int len = s.Length;