Skip to content

Commit fd615fb

Browse files
committed
Prevent bad magic
1 parent 442e581 commit fd615fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

go/ql/lib/semmle/go/Types.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ class Type extends @type {
6969
* is contained in the method set of this type and any type restrictions are
7070
* satisfied.
7171
*/
72+
pragma[nomagic]
7273
predicate implements(InterfaceType i) {
7374
if i = any(ComparableType comparable).getUnderlyingType()
7475
then this.implementsComparable()

0 commit comments

Comments
 (0)