Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Worker Change] Add error:NoMessage iff all receives have it in the alternate receive #42050

Merged

Conversation

lochana-chathura
Copy link
Member

@lochana-chathura lochana-chathura commented Jan 28, 2024

Purpose

$subject.

Fixes #41968

Approach

n/a

Samples

function foobar() {
    boolean foo = true;

    worker w1 {
        if foo {
            10 -> w2;
        }
        20 -> w2;
    }

    worker w2 {
        int a = <- w1|w1; // LHS type does not require error:NoMessage now
    }

    _ = wait {a: w1, b: w2};
}

Remarks

n/a

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

@lochana-chathura lochana-chathura added the Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times. label Jan 28, 2024
@lochana-chathura lochana-chathura changed the title [Worker Change] Add error:NoMessage iff all receives have it in alternate receive [Worker Change] Add error:NoMessage iff all receives have it in the alternate receive Jan 29, 2024
@lochana-chathura lochana-chathura marked this pull request as ready for review January 29, 2024 08:19
@lochana-chathura lochana-chathura merged commit 966289c into ballerina-platform:worker_change Jan 29, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team/CompilerFE All issues related to Language implementation and Compiler, this exclude run times.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant