Skip to content

Commit aade51b

Browse files
committed
Implementations may not deprecate a field that the interface hasn't deprecated
1 parent 3adfcca commit aade51b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/Section 3 -- Type System.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -947,6 +947,8 @@ IsValidImplementation(type, implementedType):
947947
2. Let {implementedFieldType} be the return type of {implementedField}.
948948
3. {IsValidImplementationFieldType(fieldType, implementedFieldType)} must
949949
be {true}.
950+
6. If the `@deprecated` directive is not applied to {implementedField}, then
951+
the `@deprecated` directive must not be applied to {field}.
950952

951953
IsValidImplementationFieldType(fieldType, implementedFieldType):
952954

0 commit comments

Comments
 (0)