robertwb / issues-import-test

0 stars 0 forks source link

False "Unreachable code" warning #109

Closed robertwb closed 7 years ago

robertwb commented 7 years ago

Reported by jdemeyer on 25 Jan 2016 09:59 UTC The following perfectly sensible code gives a warning about "Unreachable code":

cdef class unreachable_code(list):
    def is_positive(self):
        return all(x > 0 for x in self for y in x)

Migrated-From: http://trac.cython.org/ticket/876

robertwb commented 7 years ago

Comment by scoder on 24 Mar 2016 20:01 UTC This was really generating dead code. Fixed here: https://github.com/cython/cython/commit/dca035a35678c68fd804769dc6c83effa6172de1

robertwb commented 7 years ago

Modified by scoder on 24 Mar 2016 20:01 UTC

robertwb commented 7 years ago

Modified by scoder on 24 Mar 2016 20:18 UTC