From 549099039ef76a04ed524448c070a0c5328c52b2 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 15 Nov 2015 14:20:06 +0000 Subject: Handle boxing for return statements --- src/main/resources/python/runtime/_couscous.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/resources/python/runtime/_couscous.py') diff --git a/src/main/resources/python/runtime/_couscous.py b/src/main/resources/python/runtime/_couscous.py index 70d9a97..aa108a5 100644 --- a/src/main/resources/python/runtime/_couscous.py +++ b/src/main/resources/python/runtime/_couscous.py @@ -1,4 +1,5 @@ from .java.lang.Integer import Integer +from .java.lang.Boolean import Boolean def _div_round_to_zero(a, b): @@ -9,3 +10,6 @@ def _mod_round_to_zero(a, b): def boxInt(value): return Integer(value) + +def boxBoolean(value): + return Boolean(value) \ No newline at end of file -- cgit v1.2.3