提交 affa271d 编写于 作者: P Paul M Cohen

Respond to PR, remove stop, add unneeded ( back for clarity and fix span for test.

上级 c9a9d5f2
......@@ -55,7 +55,7 @@ Option Strict On
Imports System.Drawing
Module M
Sub Main()
Dim y As New Point([|CInt(1.1), 1)|]
Dim y As New Point([|CInt(1.1)|], 1)
End Sub
End Module
</File>
......
......@@ -138,7 +138,6 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions
If speculatedExpressionOuterType Is Nothing Then
Return Nothing
End If
Stop
If outerSpeculatedExpression.IsParentKind(SyntaxKind.SimpleArgument) Then
speculatedExpressionOuterType = outerType
Return _semanticModel.ClassifyConversion(_castExpressionNode.WalkDownParentheses(), speculatedExpressionOuterType)
......@@ -282,8 +281,8 @@ Namespace Microsoft.CodeAnalysis.VisualBasic.Extensions
If castToOuterType.IsUserDefined OrElse expressionToCastType.IsUserDefined Then
Return (HaveSameUserDefinedConversion(expressionToCastType, expressionToOuterType) OrElse
HaveSameUserDefinedConversion(castToOuterType, expressionToOuterType)) AndAlso
UserDefinedConversionIsAllowed(_castNode) AndAlso
Not expressionToCastType.IsNarrowing
(UserDefinedConversionIsAllowed(_castNode) AndAlso
Not expressionToCastType.IsNarrowing)
ElseIf expressionToOuterType.IsUserDefined Then
Return False
End If
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册