Leagify / prospect-scraper-dt2021

Scraping draft prospects for fun and charts.
1 stars 9 forks source link

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. #55

Closed zo0o0ot closed 3 years ago

zo0o0ot commented 3 years ago

When building, there's a warning message:

Warning: /home/runner/work/prospect-scraper-dt2021/prospect-scraper-dt2021/src/prospectScraper/MockDraftPick.cs(149,19): warning CS8632: The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. [/home/runner/work/prospect-scraper-dt2021/prospect-scraper-dt2021/src/prospectScraper/ProspectScraper.csproj]

It's annoying, and I'd like to fix that so it doesn't complain any more.

zo0o0ot commented 3 years ago

Relevant StackOverflow: https://stackoverflow.com/questions/55492214/the-annotation-for-nullable-reference-types-should-only-be-used-in-code-within-a

Possible format of fix:

#nullable enable
        string? message = "Hello World";
#nullable disable