[interop] Implement Diagnostics and Handling Errors (#426) * implemented diagnostics * added extra invalid semantic