Duplicate var statements not picked up

Topics: General
Nov 15, 2012 at 7:24 PM

Hi, should not the following fail to compile?

 

class Bleeter {

	bleet() {
		
		var one = "one";
		var one = "two";
		var one = "three";
		
		console.log(one);
	}
}   

Coordinator
Nov 16, 2012 at 6:01 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.