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