-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Extending or implementing Dynamic should be prohibited #969
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
Comments
Added Area-Compiler, Triaged labels. |
Added Fixed label. |
dart-bot
pushed a commit
that referenced
this issue
Nov 25, 2020
2020-11-25 [email protected] Fixes #968: missing testing options added back. 2020-11-25 [email protected] #969. Line numbers where we expect an error fixed 2020-11-25 [email protected] #969. Stdout tests failures on Windows fixed. Don't pass executable arguments to the Process 2020-11-24 [email protected] Fixes #968: non-nullable shared option removed. 2020-11-23 [email protected] #932. HttpRequest tests fixed to work with cross origin 2020-11-20 [email protected] #926.Tryjob failures fixed Cq-Include-Trybots: dart/try:analyzer-nnbd-linux-release-try,dart2js-nnbd-linux-x64-chrome-try,ddc-nnbd-linux-release-chrome-try,front-end-nnbd-linux-release-x64-try,vm-kernel-nnbd-linux-release-x64-try,vm-kernel-nnbd-win-release-x64-try,vm-kernel-precomp-nnbd-linux-release-x64-try,vm-kernel-precomp-nnbd-win-release-x64-try Change-Id: I32eaa75a0fcf4b5b7d8c4855b311a46948afb6f6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/173964 Reviewed-by: William Hesse <[email protected]>
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was originally filed by [email protected]
What steps will reproduce the problem?
Test 1:
class A implements Dynamic {}
main() {
new A();
}
Test 2:
interface I extends Dynamic {}
class A implements I {}
main() {
new A();
}
What is the expected output? What do you see instead?
Expected: compile-time error
Actual: compilation ends without errors.
What version of the product are you using? On what operating system?
dartc r2810, Ubuntu 10.04
Please provide any additional information below.
Section 7.9 of the Language Specification: "It is a compile-time error if the implements clause of a class includes type Dynamic."
Section 8.4: "It is a compile-time error if the extends clause of an interface includes type Dynamic."
The text was updated successfully, but these errors were encountered: