Skip to content

Stylus inheritance #2283

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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Stylus inheritance #2283

wants to merge 11 commits into from

Conversation

anegg0
Copy link
Contributor

@anegg0 anegg0 commented May 1, 2025

This PR adds a doc about inheritance patterns in Stylus.

[NOTE]: The code included in this doc compiles and can successfully be tested

Changes

  • Adds detailed explanation of the #[inherit] and #[borrow] macros and their usage
  • Documents how method resolution and overriding work in Stylus inheritance
  • Clarifies current limitations, including noting that multi-inheritance is not yet supported
  • Provides code examples about inheritance patterns
  • Explains storage layout considerations when using inheritance in Stylus

Copy link

vercel bot commented May 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
arbitrum-docs ✅ Ready (Inspect) Visit Preview May 8, 2025 6:40pm

@anegg0 anegg0 marked this pull request as ready for review May 1, 2025 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant