You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you create an action with return statements in a check/detect block, the compiler will flag it as invalid due to missing a return statement, even if the action is guaranteed to return something. The code below reproduces the issue.
// BEGINNING OF CODE SAMPLE
class Main
action Main
Thing()
end
action Thing returns integer
check
return 0
detect error
return 1
end
end
end
// END OF CODE SAMPLE
The text was updated successfully, but these errors were encountered:
If you create an action with return statements in a check/detect block, the compiler will flag it as invalid due to missing a return statement, even if the action is guaranteed to return something. The code below reproduces the issue.
// BEGINNING OF CODE SAMPLE
class Main
action Main
Thing()
end
end
// END OF CODE SAMPLE
The text was updated successfully, but these errors were encountered: