IDL Problem Code 20 with alias return-vals-pro
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 return statements in procedures that have arguments (i.e. things they return) when that is not allowed.
idl
pro myAwesomePro
compile_opt idl2
return, 21
; ^^^^ problem here
endThe correct way to use return within procedures or procedure methods is:
idl
pro myAwesomePro
compile_opt idl2
return
; ^^^^ correct syntax is to not return anything
end