projects
/
mate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
java.io: PrintStream
[mate.git]
/
Mate
/
Utilities.hs
diff --git
a/Mate/Utilities.hs
b/Mate/Utilities.hs
index 4ede7ba61b0779871b7b28ca3e04a769fb299b8f..208a09617a2c1d4fbec81355a710d77b5e8a852d 100644
(file)
--- a/
Mate/Utilities.hs
+++ b/
Mate/Utilities.hs
@@
-47,6
+47,7
@@
methodHaveReturnValue :: Class Resolved -> Word16 -> Bool
methodHaveReturnValue cls idx = case ret of
ReturnsVoid -> False;
(Returns IntType) -> True;
+ (Returns (ObjectType _)) -> True;
_ -> error "methodHaveReturnValue: todo"
where
(CMethod _ nt) = (constsPool cls) M.! idx