It does not work, because Visual Studio will throw a 'cyclic dependency' error, because, when you think about it, GameObject inherits from GameObject which inherits from GameObject which inherits from... In other words, this is impossible, and so means nothing (except, like Neil mentioned in the comments, a compiler error).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…