You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enum Versions {
v1,
v2,
v3
}
@added(Versions.v2)
model Foo {
prop: string;
// @add(Versions.v2) // if I comment it out, it won't work
@removed(Versions.v3)
prop2: int32;
}
this will report
error
@typespec/versioning/incompatible-versioned-reference
'DemoService.Foo' was added in version 'v2' but contains type 'DemoService.Foo.prop2' added in version 'v1'.
22:3
Does @removed mean being removed since some version ? If so, I don't see why we need to add the @add decorator to remove a property.
…ning (#3409)
Fixes#3210
While the issue was for model properties, it also applies to interfaces,
so tests are included for both.
---------
Co-authored-by: Timothee Guerin <[email protected]>
Describe the bug
this will report
Does
@removed
mean being removed since some version ? If so, I don't see why we need to add the@add
decorator to remove a property.Reproduction
playground link
Checklist
The text was updated successfully, but these errors were encountered: