I am trying to save as a function (ex; function abc) the new rule created is abc--. Similar to this when I create a new function (ex; Test) after I hit the "Create and Open" button the identifier or the rule name appears as Test--. I am not sure why this hyphen is getting appended.
I am using the version 7.2.2. Is this an issue in Pega 7.2.2.
As per your shared screenshots in the attachment i could notice that the Library failed to compile due to some issue. I would request you to cross check the Library status by opening your Default library rule and click on "Generate Library" button in it to check its status.
Also share the log and the full use case screen shots for our further investigation.