26 references to NarrowingValue
Microsoft.CodeAnalysis.VisualBasic (5)
Semantics\Conversions.vb (5)
483
Const NAV As Integer = ConversionKind.
NarrowingValue
563
Return ConversionKind.
NarrowingValue
3425
Return ConversionKind.
NarrowingValue
' Shortcut
3431
Return ConversionKind.
NarrowingValue
3442
Return ConversionKind.
NarrowingValue
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (21)
Binding\ForEachTests.vb (2)
4603
Assert.Equal(ConversionKind.
NarrowingValue
, info.CurrentConversion.Kind)
4661
Assert.Equal(ConversionKind.
NarrowingValue
, info.CurrentConversion.Kind)
Semantics\Conversions.vb (15)
62
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyDirectCastAssignment(m13p(c), m13p(a), methodBodyBinder)) ' Integer)
63
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyDirectCastAssignment(m13p(c), m13p(b), methodBodyBinder)) ' Integer)
123
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyTryCastAssignment(m13p(c), m13p(a), methodBodyBinder)) ' Integer) ' error BC30792: 'TryCast' operand must be reference type, but 'Integer' is a value type.
124
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyTryCastAssignment(m13p(c), m13p(b), methodBodyBinder)) ' Integer) ' error BC30792: 'TryCast' operand must be reference type, but 'Integer' is a value type.
1925
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m10p(f), m10p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Structure2'.
1926
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m10p(f), m10p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.ValueType' to 'Structure2'.
1927
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m10p(h), m10p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Enum1'.
1928
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m10p(h), m10p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.ValueType' to 'Enum1'.
1929
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m10p(h), m10p(c))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.Enum' to 'Enum1'.
1930
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m10p(f), m10p(d))) 'error BC30512: Option Strict On disallows implicit conversions from 'Interface1' to 'Structure2'.
1931
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m10p(f), m10p(i))) 'error BC30512: Option Strict On disallows implicit conversions from 'Interface3' to 'Structure2'.
1955
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m11p(d), m11p(a))) 'error BC30512: Option Strict On disallows implicit conversions from 'Object' to 'Structure2?'.
1956
Assert.Equal(ConversionKind.
NarrowingValue
, ClassifyPredefinedAssignment(m11p(d), m11p(b))) 'error BC30512: Option Strict On disallows implicit conversions from 'System.ValueType' to 'Structure2?'.
2128
Return ConversionKind.
NarrowingValue
2423
Return ConversionKind.
NarrowingValue
Semantics\GetSemanticInfoTests.vb (1)
3383
Assert.Equal(ConversionKind.
NarrowingValue
, semanticSummary.ImplicitConversion.Kind)
Semantics\IFOperatorTest.vb (2)
177
Assert.Equal(ConversionKind.
NarrowingValue
, semanticInfos(0).ImplicitConversion.Kind)
957
Assert.Equal(ConversionKind.
NarrowingValue
, semanticInfos(0).ImplicitConversion.Kind)
Semantics\MultiDimensionalTest.vb (1)
1194
Assert.Equal(ConversionKind.
NarrowingValue
, info.CurrentConversion.Kind)