diamond types are not supported -sourceX.X解决方案

diamond types are not supported -sourceX.X
file ->Project Structure ->project setting ->project ->project language level 改成一下选项

diamond types are not supported -sourceX.X解决方案_第1张图片
image

但是还是不行,后来发现还是需要改一下这里
在prject setting ->Modules中也将Language level调整至以上选项,做到匹配:

diamond types are not supported -sourceX.X解决方案_第2张图片
image

问题解决

你可能感兴趣的:(diamond types are not supported -sourceX.X解决方案)