BC30518: Overload resolution failed because no accessible 'Where' can be called with these arguments:
Extension method 'Public Function Where(predicate As Func(Of Integer, Boolean)) As IEnumerable(Of Integer)' defined in 'Enumerable': 'Exit Try' can only appear inside a 'Try' statement.
Extension method 'Public Function Where(predicate As Func(Of Integer, Integer, Boolean)) As IEnumerable(Of Integer)' defined in 'Enumerable': 'Exit Try' can only appear inside a 'Try' statement.
x.Where(Function(y)
~~~~~
BC30393: 'Exit Try' can only appear inside a 'Try' statement.
BC30518: Overload resolution failed because no accessible 'Where' can be called with these arguments:
Extension method 'Public Function Where(predicate As Func(Of Integer, Boolean)) As IEnumerable(Of Integer)' defined in 'Enumerable': Branching out of a 'Finally' is not valid.
Extension method 'Public Function Where(predicate As Func(Of Integer, Integer, Boolean)) As IEnumerable(Of Integer)' defined in 'Enumerable': Branching out of a 'Finally' is not valid.
x.Where(Function(y)
~~~~~
BC30101: Branching out of a 'Finally' is not valid.
Exit Function
~~~~~~~~~~~~~
BC42353: Function '<anonymous method>' doesn't return a value on all code paths. Are you missing a 'Return' statement?
BC30518:Overloadresolutionfailedbecausenoaccessible'Where' can be called with these arguments:
Extensionmethod'Public Function Where(predicate As Func(Of Integer, Boolean)) As IEnumerable(Of Integer)' defined in 'Enumerable': Branching out of a 'Finally' is not valid.
Extensionmethod'Public Function Where(predicate As Func(Of Integer, Integer, Boolean)) As IEnumerable(Of Integer)' defined in 'Enumerable': Branching out of a 'Finally' is not valid.
@@ -1826,13 +1826,9 @@ BC42021: Cannot infer a return type because more than one type is possible; 'Obj
AssertTheseDiagnostics(compilation,
<expected>
BC30518:Overloadresolutionfailedbecausenoaccessible'[Select]' can be called with these arguments:
Extensionmethod'Public Function [Select](Of TResult)(selector As Func(Of SnapshotSpan, TResult)) As IEnumerable(Of TResult)' defined in 'Enumerable': Cannot infer a return type because more than one type is possible. Consider adding an 'As' clause to specify the return type.
Extensionmethod'Public Function [Select](Of TResult)(selector As Func(Of SnapshotSpan, TResult)) As IEnumerable(Of TResult)' defined in 'Enumerable': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error.
Extensionmethod'Public Function [Select](Of TResult)(selector As Func(Of SnapshotSpan, Integer, TResult)) As IEnumerable(Of TResult)' defined in 'Enumerable': Cannot infer a return type because more than one type is possible. Consider adding an 'As' clause to specify the return type.
Extensionmethod'Public Function [Select](Of TResult)(selector As Func(Of SnapshotSpan, Integer, TResult)) As IEnumerable(Of TResult)' defined in 'Enumerable': Data type(s) of the type parameter(s) cannot be inferred from these arguments. Specifying the data type(s) explicitly might correct this error.
BC36734:Cannotinferareturntypebecausemorethanonetypeispossible.Consideraddingan'As' clause to specify the return type.