PlayScriptRedux / playscript

PlayScript is an ActionScript compatible compiler and Flash compatible runtime that runs in the Mono/.NET environment
Other
17 stars 9 forks source link

Error CS0136: A local variable named `obj' cannot be declared in this scope... #108

Open sushihangover opened 8 years ago

sushihangover commented 8 years ago

Full error: Error CS0136: A local variable named obj' cannot be declared in this scope because it would give a different meaning toobj', which is already used in a `parent or current' scope to denote something else (CS0136)

Valid ActionScript:

var obj:Object;
var f:Function = function(obj:Object):void {
    trace(obj);
};
obj = "foobar";
f(obj);

Found: Starling AssetManager.as

/Users/sushi/code/redux/Starling-v1.7/starling/src/starling/utils/AssetManager.as(63,63): Error CS0136: A local variable named `asset' cannot be declared in this scope because it would give a different meaning to `asset', which is already used in a `parent or current' scope to denote something else (CS0136) (PlayScript.Starlingv1.7.MonoMac) 

/Users/sushi/code/redux/Starling-v1.7/starling/src/starling/utils/AssetManager.as(67,67): Error CS0136: A local variable named `asset' cannot be declared in this scope because it would give a different meaning to `asset', which is already used in a `parent or current' scope to denote something else (CS0136) (PlayScript.Starlingv1.7.MonoMac)

/Users/sushi/code/redux/Starling-v1.7/starling/src/starling/utils/AssetManager.as(32,32): Error CS0136: A local variable named `e' cannot be declared in this scope because it would give a different meaning to `e', which is already used in a `child' scope to denote something else (CS0136) (PlayScript.Starlingv1.7.MonoMac)

/Users/sushi/code/redux/Starling-v1.7/starling/src/starling/utils/AssetManager.as(32,32): Error CS0136: A local variable named `e' cannot be declared in this scope because it would give a different meaning to `e', which is already used in a `child' scope to denote something else (CS0136) (PlayScript.Starlingv1.7.MonoMac)