We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 210bb12 commit f7593abCopy full SHA for f7593ab
lslforge/haskell/src/Language/Lsl/Syntax.hs
@@ -741,7 +741,7 @@ compileStatement (Ctx ctx (Return (Just expr))) = do
741
(LLString,LLKey) -> return ()
742
(LLKey,LLString) -> return ()
743
(LLInteger,LLFloat) -> return ()
744
- (x,y) | x == y -> return ()
+ (x,y) | x /= LLVoid && x == y -> return ()
745
| otherwise -> (vsmAddErr (ctx,"inappropriate return type for function/handler"))
746
put'vsBranchReturns True
747
return True
0 commit comments