Issue 110: variable scope issue with double switch and CPP target
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