Skip to content

IDL Problem Code 31 with alias return-missing

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

Execution Error

This is a fatal error that prevents IDL from compiling or running code

This identifies when return statements in functions are not present.

idl
function myAwesomeFunc
  ;  ^^^^ problem here
  compile_opt idl2
end

The correct way to use return within functions or functions methods is:

idl
function myAwesomeFunc
  compile_opt idl2
  return, 42
  ;     ^^^^ correct syntax is to not return only one value
end

Licensed under MIT.