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

The 'override' decorator must have a Contracted class in it's ancestry #170

Closed
3 tasks done
mlhaufe opened this issue Dec 16, 2020 · 0 comments
Closed
3 tasks done
Assignees
Labels
feature/override The override decorator requirement An assertion or property that must be fulfilled
Milestone

Comments

@mlhaufe
Copy link
Contributor

mlhaufe commented Dec 16, 2020

// okay
@Contracted(fooContract)
class Foo {
    method(){...}
}

class Bar extends Foo {
    @override
    method(){...}
}
// Not okay
class Foo {
    method(){...}
}

class Bar extends Foo {
    @override
    method(){...}
}
  • Implementation
  • Unit Test
  • Update README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/override The override decorator requirement An assertion or property that must be fulfilled
Projects
None yet
Development

No branches or pull requests

1 participant