class Y def foo pass class Y # .error. other declaration is not is partial def bar pass