Method restriction syntax test