scripts file name does not match the name in the script

I get what its saying but the issue is.

the Name in the editor is

Weapon.cs

the name in the class is

public class Weapon <T> : MonoBehaviour where T : Projectile

the only thing i can image is the is throwing it off. But i need that :stuck_out_tongue:
i’ve put in a screenie showing the name with it highlighted to show no spaces and the script in the inspector.

Looks like you can’t use generics when creating scripts. Dragging the script to a game object results in the error you mention. Adding it programmaticaly with AddComponent gives this error:

Can’t add script behaviour . Generic MonoBehaviours are not supported!