Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sushihangover opened this issue Jan 11, 2016 · 0 comments

Comments

@sushihangover
Copy link
Contributor

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant