Skip to content

Super can't be used in equality expressions #1242

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
DartBot opened this issue Jan 20, 2012 · 4 comments
Closed

Super can't be used in equality expressions #1242

DartBot opened this issue Jan 20, 2012 · 4 comments
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.

Comments

@DartBot
Copy link

DartBot commented Jan 20, 2012

This issue was originally filed by [email protected]


The language specification allows to use super as the first operand in an equality expression. However, it can be used only in an expression of the form super == e1. Any other variations of an equality expression(with ===, !== and != operators) cause a compile time error in DartVM and Dartc:

class A {
  test() {
    super === this;
  }
}

class A {
  test() {
    super !== this;
  }
}

class A {
  test() {
    super != this;
  }
}

@dgrove
Copy link
Contributor

dgrove commented Feb 4, 2012

Added Area-VM label.

@dgrove
Copy link
Contributor

dgrove commented Feb 4, 2012

Added Triaged label.

@iposva-google
Copy link
Contributor

Similar to the other uses of super.


Set owner to @mhausner.
Added Accepted label.

@DartBot
Copy link
Author

DartBot commented Oct 29, 2012

This comment was originally written by @mhausner


This is fixed now, super == and super != is handled correctly.


Added Fixed label.

@DartBot DartBot added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Oct 29, 2012
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Projects
None yet
Development

No branches or pull requests

3 participants