Skip to content

chore: render @consume as the consume modifier #23754

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

Merged
merged 1 commit into from
Aug 16, 2025

Conversation

hamzaremmal
Copy link
Member

@hamzaremmal hamzaremmal commented Aug 15, 2025

With the given example:

import caps.consume

import scala.language.experimental.captureChecking

class Test extends caps.Mutable:
    @consume def test(@consume x: Int)(using @consume y: Int): Unit = ()

It renders as following:

Screenshot 2025-08-15 at 16 11 05

Related to #23755

@hamzaremmal hamzaremmal force-pushed the consume-modifier-scaladoc branch from ade9f92 to 42a55e2 Compare August 15, 2025 14:31
@hamzaremmal hamzaremmal enabled auto-merge August 15, 2025 14:36
@hamzaremmal hamzaremmal changed the title chore: render @consume at the consume modifier chore: render @consume as the consume modifier Aug 15, 2025
@hamzaremmal hamzaremmal merged commit f00c987 into scala:main Aug 16, 2025
45 checks passed
@hamzaremmal hamzaremmal deleted the consume-modifier-scaladoc branch August 16, 2025 00:09
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.

2 participants