Details
Description
The following code does not issue a compiler warning.
class freakyfred:
public X = 1
def dangerDoom(var as bool):
if var:
return freakyfred()
print dangerDoom(true) #not null
print dangerDoom(false) #null
Since the "default value" of a reference type is going to be null, this can be a serious ass-biter. Compiler warnings would be pleasant.
Issue Links
| This issue is depended upon by: | ||||
| BOO-1115 | Strict mode |
|
|
|
I would like to have this warning for value types, too.