logo       

[jira] Commented: (BOO-251) Local variables not falling out of scope proper: msg#00024

lang.boo.devel

Subject: [jira] Commented: (BOO-251) Local variables not falling out of scope properly.

The following comment has been added to this issue:

Author: Arron Washington
Created: Fri, 11 Feb 2005 7:18 PM
Body:
Whoops, I wasn't very clear.

This is the message the compiler is generating:

BCE0022: Boo.Lang.Compiler.CompilerError: Cannot convert 'System.String' to
'System.Int32'
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/BOO-251?page=comments#action_29810

---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/BOO-251

Here is an overview of the issue:
---------------------------------------------------------------------
Key: BOO-251
Summary: Local variables not falling out of scope properly.
Type: Bug

Status: Unassigned
Priority: Major

Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown

Project: Boo
Components:
Compiler

Assignee:
Reporter: Arron Washington

Created: Fri, 11 Feb 2005 7:17 PM
Updated: Fri, 11 Feb 2005 7:18 PM
Environment: Latest Boo SVN. ;)

Description:
if true:
kipper = 1
elif false:
kipper = "FUTZ!"

Self-explainatory.

But, just to be redundant: kipper should have fallen out of scope once the "if"
block ended, and so should be available as a variable name in the elif block.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise