Skip to content

[diagnostics]: inaccurate warning messages regarding incompatible verions #5863

Closed

Description

Description

See the discussion here. For the spec below, the diagnostic message will be like 'TestService.{ param: TestService.Foo }.param' is referencing versioned type 'TestService.Foo' but is not versioned itself.. However, the more accurate message should use TestService.test::parameters.param, instead of TestService.{ param: TestService.Foo }.param.

namespace TestService;

@added(Versions.v2)
model Foo {}

op test(param: Foo): void;

Activity

  1. timotheeguerin commented on Feb 5, 2025

    @timotheeguerin
    Member

    I think the underlying issue here is that the parameter model expression doesn't have a reference back to the containing operation. I thought we had an issue to discuss finding a way to resolve the "parent" of a type but I can't seem to find it

  2. added a commit that references this issue on Aug 28, 2026
    2976f18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions