class Foo { foreign method { "body" } // expect error }