Fix reference to extension type
Make sure error/warning message reporting can handle false line numbers