Skip to content

Expression converter typo #21233

Closed
Closed

Description

@bvdmitri

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

There is a typo in expression_converter.ts
link

    // For literal values of null, undefined, true, or false allow type inteference
    // to infer the type.
    const type =
        ast.value === null || ast.value === undefined || ast.value === true || ast.value === true ?
        o.INFERRED_TYPE :
        undefined;
ast.value === true || ast.value === true

Expected behavior

ast.value === true || ast.value === false

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Just a typo

Environment

Any


Angular version: 5.1.2


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Activity

  1. bvdmitri commented on Jan 3, 2018

    @bvdmitri
    Author

    As I can see the last commit was made by @chuckjaz. Can you review this line of code?

  2. sarunint commented on Jan 3, 2018

    @sarunint
    Contributor

    I believe it is. It's part of #20972

  3. added this to the Backlog milestone on Jan 23, 2018
  4. modified the milestones: Backlog, needsTriage on Feb 26, 2018
  5. added
    area: compilerIssues related to `ngc`, Angular's template compiler
    and removed
    area: coreIssues related to the framework runtime
    on Mar 13, 2020
  6. 3 remaining items

  7. added a commit that references this issue on May 30, 2020
    1fa6a5a
  8. added
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    and removed
    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
    on Oct 1, 2020
  9. modified the milestones: Backlog, needsTriage on Oct 1, 2020
  10. added
    P5The team acknowledges the request but does not plan to address it, it remains open for discussion
    on Oct 1, 2020
  11. modified the milestones: needsTriage, Backlog on Oct 1, 2020
  12. jelbourn commented on Apr 6, 2021

    @jelbourn
    Contributor

    Conversation on #37361 indicates that this might be dead code anyway. Since this is VE only, it's not really worth the effort to fix.

  13. angular-automatic-lock-bot commented on May 7, 2021

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  14. locked and limited conversation to collaborators on May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: compilerIssues related to `ngc`, Angular's template compilerfreq2: mediumopen for contributionsAn issue that is suitable for a community contributor (based on its complexity/scope).state: confirmedtype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions