Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Auto-Async issue failing on Windows #359

@luiscubal

Description

@luiscubal

I've noticed 813fe1d and I decided to investigate this problem. I've focused on TestContinueWithUsingPrecedentTask.

After some debugging, I believe this problem is caused by two bugs:

  1. The original AutoAsyncIssue has insufficient testing and fails for Tasks with no parameters that happen to be reused. I've added the missing test case and it also fails on Linux. See luiscubal@0f48a97
  2. The resolver behaves differently on Windows. The lambda parameter in the continuation (precedent) resolves to Task<int>(correctly) on Linux but Task (incorrectly) on Windows. This triggered the untested code path for Tasks with no parameters on Windows.

This is all I've got for today. I'll take another look and try to fix 1 when I have some more time, but I'll have to rely on someone else to figure out the cause of problem 2. Should I start a separate issue for that one?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions