Prevent bad magic

This commit is contained in:
Chris Smowton
2024-09-30 17:25:20 +01:00
parent 442e58188b
commit fd615fb7a3

View File

@@ -69,6 +69,7 @@ class Type extends @type {
* is contained in the method set of this type and any type restrictions are
* satisfied.
*/
pragma[nomagic]
predicate implements(InterfaceType i) {
if i = any(ComparableType comparable).getUnderlyingType()
then this.implementsComparable()