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: interface must declare a factory class #974

Closed
DartBot opened this issue Dec 26, 2011 · 6 comments
Closed

DartVM: interface must declare a factory class #974

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

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


What steps will reproduce the problem?
consider the following test:
interface I {
  I();
}

class A implements I {}

main() {
  new A();
}

What is the expected output? What do you see instead?
Expected: compile-time error ("It is a compile-time error if an interface declares a constructor without declaring a factory class"
Actual: the code is successfully compiled

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

Please provide any additional information below.
co19 test:
LangSpecTest/08_Interfaces/3/Factories/and/Constructors/A02/t07

@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

We do not have any plan to relax this rule. It should result in a compilation error.

@DartBot
Copy link
Author

DartBot commented Mar 30, 2012

This comment was originally written by @mhausner


Fixed as of r6046

@DartBot
Copy link
Author

DartBot commented Mar 30, 2012

This comment was originally written by @mhausner


Fixed as of r6046.


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 Mar 30, 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