In the following code:
Public Structure MyDate
Public year As Integer
Public month As Integer
End Structure
Public Function GetMyDate() As MyDate
End Function
Public Function GetSystemDate() As Date
End Function
Public Function GetListview() As ListView
End Function
Public Function GetInteger() As Integer
End Function
Visual Studio 2015 issues warnings that GetSystemDate, GetListview and GetInteger "doesn't return a value on all code paths" but it is silent on GetMyDate.
Is there a sensible reason for this or perhaps it's a bug?