I keep having this error within a line of my code and I can't seem to fix it.
- error BC30182: Type expected.
- error BC30638: Array bounds cannot appear in type specifiers.
Here is my code:
Dim upload As Dictionary(Of (Long, Long, Long), Long)
It is located in Page_Prerender . The LangVersion for :default, latest or 16.9 could not be set also. (the value 'default' is invalid for option 'langversion'). The error occurs in vs2019 and vs2022 community version. However it runs fine on LinqPad5 and other VB project. I deleted all my obj files and rebooted :(. Maybe I have to delete some other object files in appdata or elsewhere?
I tried to compile it in previous version of visual studio, deleted obj files, changed langversion.