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

DartVM: redirecting constructors should not be allowed to have a body #977

Closed
DartBot opened this issue Dec 26, 2011 · 5 comments
Closed
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 Dec 26, 2011

This issue was originally filed by ief...@unipro.ru


What steps will reproduce the problem?
consider the following test:

class C {
  C() : this.init() {}
  C.init();
}

main() {
  var x = new C();
}

What is the expected output? What do you see instead?
Expected: compile-time error
Actual: successful compilation

What version of the product are you using? On what operating system?
DartVM r2810

Please provide any additional information below.
co19 tests:
LangSpecTest/07_Classes/A02/t06
LangSpecTest/07_Classes/A02/t08
LangSpecTest/07_Classes/5_Constructors/1/Generative/Constructors/A03/t02

@dgrove
Copy link
Contributor

dgrove commented Jan 2, 2012

Added Area-VM, Triaged labels.

@iposva-google
Copy link
Contributor

Marked this as being blocked by #1031.

@iposva-google
Copy link
Contributor

Matthias, can you please work with Gilad to resolve whether these are still expected to be compile-time errors and whether they should be. See the blocking bug.


cc @gbracha.
Set owner to @mhausner.
Added Accepted label.

@gbracha
Copy link
Contributor

gbracha commented Mar 16, 2012

AFIK, a redirecting constructor cannot have a body by virtue of the syntax. This shoudn't parse.

@DartBot
Copy link
Author

DartBot commented Jul 27, 2012

This comment was originally written by @mhausner


fixed at r9999


Added Fixed label.
Marked this as being blocked by #1031.
Unmarked this as being blocked by #1031.

@DartBot DartBot added Type-Defect area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. labels Jul 27, 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

4 participants