from numba import autojit
import numpy as np
print np.zeros(10).dtype


@autojit
def closure_modulo(a, b):
    c = np.zeros(10)
    @jit('f8[:]()')
    def foo():
        c[0] = a % b
        return c
    return foo()

print closure_modulo(100, 48)

@@ -23,53 +23,8 @@
 jit%0A
-import numpy as np%0Aprint np.zeros(10).dtype%0A%0A
 %0A@au
@@ -59,29 +59,8 @@
 b):%0A
-    c = np.zeros(10)%0A
     
@@ -69,13 +69,13 @@
 it('
-f8%5B:%5D
+int32
 ()')
@@ -94,29 +94,8 @@
 ():%0A
-        c%5B0%5D = a %25 b%0A
     
@@ -105,17 +105,21 @@
  return 
-c
+a %25 b
 %0A    ret

Simplify and cleanup previous commit.