-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Description
This issue has been moved from a ticket on Developer Community.
https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2521944
[severity:It's more difficult to complete my work]
VBC refuses to compile this following VB console program:
Imports System
Module Program
Sub Main()
Dim fn As Func(Of Byte, Double) = AddressOf Double.CreateTruncating
Dim b As Byte = 10
Console.WriteLine(fn(b))
End Sub
End Module
Can't compile with or without (Of Byte). AddressOf Convert.ToDouble or a wrapper lambda passes but I don't accept those as workarounds because they don't meet my need.
Environment: VS 17.14.7, vbc 4.14.0-3.25279.5 (995f12b), .Net 9.0, Windows 11 (10.0.26100.4484)
Original Comments
Feedback Bot on 7/6/2025, 07:04 PM:
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 7/30/2025, 03:25 PM:
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.