Commit 103e4f22 authored by Nicolas Pauss's avatar Nicolas Pauss Committed by Stefan Behnel

2685_warn_undeclared: add test for warn.undeclared.

parent a12dab85
# cython: warn.undeclared=True
# mode: error
# tag: werror
def foo():
a = 1
return a
cdef class Bar:
cdef int baz(self, a):
res = 0
for i in range(3):
res += i
return res
_ERRORS = """
6:4: implicit declaration of 'a'
11:8: implicit declaration of 'res'
12:12: implicit declaration of 'i'
"""
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment