My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 110: variable scope issue with double switch and CPP target
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2011


 
Reported by stephane...@gmail.com, Mar 17, 2011
What steps will reproduce the problem?
1. compile the code below with cpp as the target
2.
3.

What is the expected output? What do you see instead?
It doesn't compile and should (problem of variable scope).

Please complete the following class with minimal code reproducing the
problem :

enum TB {
	B(a : Int);
}
class Simple
{
	function foo () {
		var bar =
			function(a : TB) : Int {
				return
					switch (a) {
						case B(v1):
							switch (a) {
								case B(v2):
									v2;
							};
					};
			}
		
		bar(B(0));
	}
}

Please provide any additional information below.
compile with haxe compiler r3729

Mar 22, 2011
Project Member #1 gameh...@gmail.com
Fixed on SVN
Status: Fixed

Powered by Google Project Hosting