Regression test for method resolution.