Skip to content

IDL Problem Code 32 with alias routines-first

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

If you have routine definitions, then it validates that only routines or comments come before them. IDL does not allow variable creation outside of routine definitions.

idl
a = 42
;  ^^^^ problem here

function myAwesomeFunc
  compile_opt idl2
end

To correct, remove your problem code:

idl
function myAwesomeFunc
  compile_opt idl2
end

Licensed under MIT.