Skip to content

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

@sushihangover

Description

@sushihangover

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions