Error messages for extending a specific type

This commit is contained in:
Prateek Goel 2018-10-20 23:58:59 +05:30
parent 72244c5b03
commit 8ff539245c
2 changed files with 4 additions and 4 deletions

View File

@ -5831,7 +5831,7 @@ namespace ts {
}
}
else {
error(node, Diagnostics.An_interface_may_only_extend_a_class_or_another_interface);
error(node, Diagnostics.An_interface_can_only_extend_an_object_or_intersection_type_with_statically_known_members);
}
}
}
@ -25979,7 +25979,7 @@ namespace ts {
}
}
else {
error(typeRefNode, Diagnostics.A_class_may_only_implement_another_class_or_interface);
error(typeRefNode, Diagnostics.A_class_can_only_implement_an_object_or_intersection_type_with_statically_known_members);
}
}
}

View File

@ -1056,7 +1056,7 @@
"category": "Error",
"code": 2311
},
"An interface may only extend a class or another interface.": {
"An interface can only extend an object or intersection type with statically known members.": {
"category": "Error",
"code": 2312
},
@ -1484,7 +1484,7 @@
"category": "Error",
"code": 2420
},
"A class may only implement another class or interface.": {
"A class can only implement an object or intersection type with statically known members.": {
"category": "Error",
"code": 2422
},