# Puzzling Compiler Error

**URL:** <https://forum.kirupa.com/t/puzzling-compiler-error/316335>\
**Category:** programming\
**Created:** [November 18, 2010, 3:58pm UTC](https://forum.kirupa.com/t/puzzling-compiler-error/316335 "2010-11-18T15:58:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![onomatopoetry](https://avatars.discourse-cdn.com/v4/letter/o/dec6dc/32.png) [@onomatopoetry](https://forum.kirupa.com/u/onomatopoetry)\
**Post date:** [November 18, 2010, 3:58pm UTC](https://forum.kirupa.com/t/puzzling-compiler-error/316335/1 "2010-11-18T15:58:55Z")

</div>

Hello all,  
I’m working on a simple beat-em-up castle crashers style game, but I’ve got one strange, strange bug holding me back. The error message I’m getting is this:

1044: Interface method setTag in namespace ICollider not implemented by class Mobile.

The problem is… setTag most definitely _is_ implemented. Here is the relevant code:

package  
{  
public interface ICollider  
{  
function getTag() : uint;  
function setTag(t : uint) : void;  
}  
}

and

package  
{  
class Mobile extends MovieClip implements ICollider  
{  
private var tag : uint;  
…  
private function setTag(t : uint) : void  
{  
this.tag = t;  
}  
public function getTag() : uint  
{  
return this.tag;  
}  
…  
}  
}

The weirdest part is, getTag doesn’t trigger an error. I have no idea why the complier cannot recognize setTag. I’ve tried: commenting out all other references to setTag throughout the program, removing the visibility modifier, directly importing ICollider, and changing every single part of the method signature.

TL;DR The compiler thinks a class is not implementing a method declared in an interface, but it is. what else could trigger this error? has anyone had this problem before??
