8 references to CanUnify
Microsoft.CodeAnalysis.CSharp (1)
Utilities\TypeSymbolExtensions.cs (1)
167
return TypeUnification.
CanUnify
(thisType, otherType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (3)
Semantics\NativeIntegerTests.cs (3)
14743
Assert.False(TypeUnification.
CanUnify
(type1, type2));
14744
Assert.True(TypeUnification.
CanUnify
(type1, type3));
14745
Assert.True(TypeUnification.
CanUnify
(type4, type5));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\TypeUnificationTests.cs (4)
426
Assert.True(TypeUnification.
CanUnify
(t1, t2), string.Format("{0} vs {1}", t1, t2));
427
Assert.True(TypeUnification.
CanUnify
(t2, t1), string.Format("{0} vs {1}", t2, t1));
432
Assert.False(TypeUnification.
CanUnify
(t1, t2), string.Format("{0} vs {1}", t1, t2));
433
Assert.False(TypeUnification.
CanUnify
(t2, t1), string.Format("{0} vs {1}", t2, t1));