This only checks for static methods on failed method lookup (and it's going to report an error regardless of finding a static, it just sugars the error), so this code will compile fine as the method lookup won't fail. 

I couldn't find a runpass test for this name overlap, so I just added one for posterity. (In latest commit)