Menu ▾ ▴

#21 Missing compiler warning: missing return statement

open
None
5
2011-02-10
2010-05-18
micha
No

This code

public float getX(int a){ if (a<5) return 42; }

should result in an "missing return statement", but it did not!

Discussion

  • Reinhard Hemmerling

    • assigned_to: nobody --> okn
     

Log in to post a comment.