This issue has been moved from a ticket on Developer Community.
[severity:I'm frustrated, but able to complete my work]
Example:
Module Module1
Sub Main()
Dim z As Integer = 2
Const w As Integer = 2 ^ z
End Sub
End Module
Running latest Microsoft Visual Studio Professional 2019 (Version 16.7.2)
No Compiler/IntelliSense Error, not even a Warning.
But it fails to build/run with the misterious error:
Error BC36970 Failed to emit module 'tempTest1.exe': Unable to determine specific cause of the failure.
In my example, that is very simple, is not that hard to find the offending line ("Const w"), that compiles if we change it to "Dim w", but yesterday, on a very larger piece of code, this was not easy to debug.
This is a defect (BUG), and I kindly ask you to take a look and fix it.
Original Comments
Feedback Bot on 8/28/2020, 00:41 AM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Feedback Bot on 9/16/2020, 11:27 AM:
This issue is currently being investigated. Our team will get back to you if either more information is needed, a workaround is available, or the issue is resolved.
Original Solutions
(no solutions)