Consider the following test case:
SELECT CAST(1 AS YEAR); -- Syntax error in SQL statement
Unexpectedly, the SELECT results in a syntax error. I would expect this to work, since the documentation explicitly mentions that YEAR is an alias for SMALLINT (See https://www.h2database.com/html/datatypes.html#smallint_type). I found this based on commit 073bbb8.