I keep getting an error when try to change the tag of a gameObject

as title say.

Basically I was trying to do this:

gameObject.tag = "Default";

And I get this error:

Tag: D is not defined

Basically it just take the first letter of the string, no matter what the string is, it only works if I create a tag with one letter name.

Also I tried using it in a different project and I get the same error, so maybe is a Unity bug? I’m using 5.5.2f1 version.

Default is keyword and default is predefined tag So you cant give tag to any gameobject with string “Default”.