Skip to content

reference docs don't explain givens with ConstrApp #19016

Closed
@bjornregnell

Description

@bjornregnell

Compiler version

3.3.1

Minimized code

This way of writing givens is a bit surprising:

given ops1: IntOps()

which perhaps is a shorthand for

given ops1: IntOps with {}

Expectation

An explanation and example of the usage of given IntOps() should be given here:
https://github.com/lampepfl/dotty/blob/main/docs/_docs/reference/contextual/givens.md

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions