| Issue 8: | for iteration over null array should bring up an error message | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem?
public static function getFiles () : Array<String>
{
return null;
}
public static function main ():Void
{
var t = Timer.stamp();
var f = getFiles();
for (i in f) {
trace(i);
}
}
the application freezes without error message on windows 7. It would be
great to get an exception. If enhanced error-checking, would lead to slower
code, maybe it's possible to include null checks in Debug-Mode (-debug).
May 6, 2010
Project Member
#1
gameh...@gmail.com
Status:
Fixed
|