Skip to content

IDL Problem Code 26 with alias duplicate-func-method

Want to disable me? Check out the configuration guide to learn more.

This identifies user-defined function methods that have more than one definition present.

Note that IDL is case insensitive when resolving routines and, once a routine is compiled or on IDL's search path, it can be accessed from anywhere.

idl
function myClass::myMethod
  ;      ^^^^^^^^^^^^^^^^^ duplicate function
  return, 1
end

function myClass::myMethod
  ;      ^^^^^^^^^^^^^^^^^ duplicate function
  return, 1
end

To fix, change the name of your routines:

idl
function myClass::myMethod1
  return, 1
end

function myClass::myMethod2
  return, 1
end

Licensed under MIT.