Skip to content

[v2] Error when contract linearisation is impossible#1831

Open
vladimirradosavljevic wants to merge 1 commit into
mainfrom
sdr24
Open

[v2] Error when contract linearisation is impossible#1831
vladimirradosavljevic wants to merge 1 commit into
mainfrom
sdr24

Conversation

@vladimirradosavljevic

Copy link
Copy Markdown
Contributor

Add two diagnostics from the linearisation pass:

  1. cyclic-inheritance for inheritance cycles.
  2. linearisation-impossible for inconsistent C3 orderings.
    Add a binder test for the forward-reference case, where solc errors but slang intentionally accepts it.

@vladimirradosavljevic vladimirradosavljevic requested review from a team as code owners June 5, 2026 14:31
@changeset-bot

changeset-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a1a21de

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branchsdr24
Testbedci

⚠️ WARNING: Truncated view!

The full continuous benchmarking report exceeds the maximum length allowed on this platform.

⚠️ WARNING: No Threshold found!

Without a Threshold, no Alerts will ever be generated.

🐰 View full continuous benchmarking report in Bencher

Base automatically changed from sdr23 to main June 8, 2026 11:39
Add two diagnostics from the linearisation pass:
1) cyclic-inheritance for inheritance cycles.
2) linearisation-impossible for inconsistent C3 orderings.

Add a binder test for the forward-reference case, where solc errors
but slang intentionally accepts it.

Signed-off-by: Vladimir Radosavljevic <vr@matterlabs.dev>
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

Successfully merging this pull request may close these issues.

1 participant