Skip to content

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

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

Extending or implementing Dynamic should be prohibited #969

DartBot opened this issue Dec 26, 2011 · 4 comments
Assignees

Comments

@DartBot
Copy link

DartBot commented Dec 26, 2011

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."

@dgrove
Copy link
Contributor

dgrove commented Jan 2, 2012

Added Area-Compiler, Triaged labels.

@scheglov
Copy link
Contributor

scheglov commented Jan 4, 2012

Set owner to @scheglov.
Added Started label.

@scheglov
Copy link
Contributor

scheglov commented Jan 6, 2012

@scheglov
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants