[interop] Implement Diagnostics and Handling Errors (#426)

* implemented diagnostics

* added extra invalid semantic
6 files changed