Version Used:
VB 15.4
Steps to Reproduce:
Private Async Function B_Async(_document As Document, _CancellationToken As CancellationToken) As Task(Of Document)
Debug.WriteLine($"#Codefix Entering {NameOf(B_Async)}")
Return Nothing
End Function
Expected Behavior:
No Errors
Actual Behavior:
Error BC36946 The implicit return variable of an Iterator or Async method cannot be accessed.
@paul1956 In case you (or someone else finding this issue) still need/want a workaround, you can use NameOf(Me.B_Async)
, which seems obvious but eluded me for a while.
Most helpful comment
@paul1956 In case you (or someone else finding this issue) still need/want a workaround, you can use
NameOf(Me.B_Async)
, which seems obvious but eluded me for a while.