Skip to content

Incorrect inference when including a positional modifier #571

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

Closed
pokey opened this issue Feb 19, 2022 · 0 comments · Fixed by #1024
Closed

Incorrect inference when including a positional modifier #571

pokey opened this issue Feb 19, 2022 · 0 comments · Fixed by #1024
Assignees
Labels
bug Something isn't working
Milestone

Comments

@pokey
Copy link
Member

pokey commented Feb 19, 2022

In the following typescript code:

function foo() {
  return "|";
}

function bar() {
  return "";
}

Saying "bring bat before funk" results in the following code:

function foo() {
    return "|";
}


bar function bar() {
    return "";
}

This behavior is inconsistent with the way it would work if we said "bring bat to funk", which would result in the following:

bar;

function bar() {
  return "";
}

The analogous behavior for "bring bat before funk"would be:

bar function foo() {
    return "";
}


function bar() {
    return "";
}
@pokey pokey added the bug Something isn't working label Feb 19, 2022
@pokey pokey added this to the 0.27.0 milestone Sep 23, 2022
@AndreasArvidsson AndreasArvidsson self-assigned this Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants