robertwb / issues-import-test

0 stars 0 forks source link

False "Unreachable code" warning #1027

Closed robertwb closed 8 years ago

robertwb commented 8 years ago

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 8 years ago

scoder changed _comment0 from This really generating dead code. Fixed here: https://github.com/cython/cython/commit/dca035a35678c68fd804769dc6c83effa6172de1 to 1458850717134981 component from Error Reporting to Code Generation milestone from wishlist to 0.24 owner to scoder status from new to assigned This was really generating dead code. Fixed here: https://github.com/cython/cython/commit/dca035a35678c68fd804769dc6c83effa6172de1

robertwb commented 8 years ago

scoder changed resolution to fixed status from assigned to closed

robertwb commented 8 years ago

scoder changed milestone from 0.24 to 0.23.5