Skip to content

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Oct 5, 2018

The library now recognizes null-guards such as

if (x is string)
    return x.ToString(); // x is not null

and

switch (x)
{
    case null:
        return "";
    default:
        return x.ToString(); // x is not null
}

@hvitved hvitved added the C# label Oct 5, 2018
@hvitved hvitved requested a review from calumgrant October 5, 2018 11:43
@hvitved hvitved requested a review from a team as a code owner October 5, 2018 11:43
@hvitved hvitved force-pushed the csharp/null-guards branch 2 times, most recently from 02e25e8 to 42e0fa3 Compare October 8, 2018 13:10
@hvitved hvitved force-pushed the csharp/null-guards branch from 42e0fa3 to 603c3d6 Compare October 15, 2018 08:56
@hvitved
Copy link
Contributor Author

hvitved commented Oct 16, 2018

Ping @calumgrant

Copy link
Contributor

@calumgrant calumgrant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice.

@calumgrant calumgrant merged commit 0ddb702 into github:master Oct 17, 2018
@hvitved hvitved deleted the csharp/null-guards branch October 17, 2018 18:32
aibaars pushed a commit that referenced this pull request Oct 14, 2021
smowton pushed a commit to smowton/codeql that referenced this pull request Apr 16, 2022
Kotlin: Log to a file, not stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants