You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempted to migrate the test to xUnit. Still see the same issue. That is, I can reproduce it locally without any frameworks. It is not caused by Tao. It seems to be a regression in VB compiler services.
Here is a repro scenario:
Create a VB console application with the code.
Module Module1
Sub Main()
'Dim x = (Function(val) (val + val))(1)
System.Diagnostics.Debugger.Break()
End Sub
End Module
Start debugging up to the breakpoint.
Type ?(Function(val) (val + val))(1) in the immediate window. Expected 2 Actual error BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.AddObject' is not defined.
Also Microsoft.VisualBasic.dll is not loaded in Debug -> Modules.
Uncomment the line in the code and run it again.
?(Function(val) (val + val))(1) will work in the immediate window.
Microsoft.VisualBasic.dll will be loaded in Debug -> Modules.
Trying to add a reference explicityl, you would get the following message
A reference to 'Microsoft.VisualBasic' could not be added. This component is already automatically referenced by the build system.
Based on #8724
Will migrate tests for #8724 from Tao to xUnit but keep the failing one skipped for a while.
The text was updated successfully, but these errors were encountered:
This issue is different from the linked issue. I'm modifying the integration test to use this expression:
(Function(valAsInteger)(val+val))(1)
The original expression (where val is not typed as Integer) cannot be evaluated by the debugger expression evaluator. This issue tracks that specific failure.
Attempted to migrate the test to xUnit. Still see the same issue. That is, I can reproduce it locally without any frameworks. It is not caused by Tao. It seems to be a regression in VB compiler services.
Here is a repro scenario:
?(Function(val) (val + val))(1)
in the immediate window.Expected
2
Actual
error BC35000: Requested operation is not available because the runtime library function 'Microsoft.VisualBasic.CompilerServices.Operators.AddObject' is not defined.
?(Function(val) (val + val))(1)
will work in the immediate window.Trying to add a reference explicityl, you would get the following message
Based on #8724
Will migrate tests for #8724 from Tao to xUnit but keep the failing one skipped for a while.
The text was updated successfully, but these errors were encountered: