From aab01ad2804bfbaacf88306de57bdd63105b9c6f Mon Sep 17 00:00:00 2001
From: Dag Sverre Seljebotn <dagss@student.matnat.uio.no>
Date: Wed, 18 Jun 2008 19:42:41 -0700
Subject: [PATCH] Added test case with typing

---
 tests/run/withstat.pyx | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/tests/run/withstat.pyx b/tests/run/withstat.pyx
index eb23902d..f44b0c28 100644
--- a/tests/run/withstat.pyx
+++ b/tests/run/withstat.pyx
@@ -26,6 +26,10 @@ exit <type 'NoneType'> <type 'NoneType'> <type 'NoneType'>
 enter
 (1, 2, (3, (4, 5)))
 exit <type 'NoneType'> <type 'NoneType'> <type 'NoneType'>
+>>> typed()
+enter
+10
+exit <type 'NoneType'> <type 'NoneType'> <type 'NoneType'>
 """
 
 class MyException(Exception):
@@ -68,3 +72,9 @@ def tupletarget():
     with ContextManager((1, 2, (3, (4, 5)))) as t:
         print t
 
+def typed():
+    cdef unsigned char i
+    c = ContextManager(255)
+    with c as i:
+        i += 11
+        print i
-- 
2.26.2