mirror of
https://github.com/github/codeql.git
synced 2026-04-18 05:24:01 +02:00
Prevent bad magic
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user