-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
Comments
Marked this as being blocked by #1031. |
We do not have any plan to relax this rule. It should result in a compilation error. |
This comment was originally written by @mhausner Fixed as of r6046 |
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.
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
The text was updated successfully, but these errors were encountered: