File tree Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Expand file tree Collapse file tree 4 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -356,7 +356,7 @@ public override bool Equals(object obj)
356
356
var type = obj as PointerType ;
357
357
if ( type == null ) return false ;
358
358
359
- return QualifiedPointee . Equals ( type . QualifiedPointee )
359
+ return Pointee . Equals ( type . Pointee )
360
360
&& Modifier == type . Modifier ;
361
361
}
362
362
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ public void TestCodeGeneration()
24
24
{
25
25
Bar bar = foo ;
26
26
Assert . IsTrue ( Bar . Item . Item1 == bar ) ;
27
+
28
+ using ( var hasOverloadsWithDifferentPointerKindsToSameType =
29
+ new HasOverloadsWithDifferentPointerKindsToSameType ( ) )
30
+ hasOverloadsWithDifferentPointerKindsToSameType . Overload ( foo , 0 ) ;
27
31
}
28
32
using ( var overridesNonDirectVirtual = new OverridesNonDirectVirtual ( ) )
29
33
{
Original file line number Diff line number Diff line change @@ -845,6 +845,14 @@ void HasOverloadsWithDifferentPointerKindsToSameType::overload(const int& i)
845
845
{
846
846
}
847
847
848
+ void HasOverloadsWithDifferentPointerKindsToSameType::overload (const Foo& rx, int from)
849
+ {
850
+ }
851
+
852
+ void HasOverloadsWithDifferentPointerKindsToSameType::overload (Foo& rx, int from)
853
+ {
854
+ }
855
+
848
856
void HasOverloadsWithDifferentPointerKindsToSameType::dispose ()
849
857
{
850
858
}
Original file line number Diff line number Diff line change @@ -1308,6 +1308,8 @@ class DLL_API HasOverloadsWithDifferentPointerKindsToSameType
1308
1308
void overload (int & i);
1309
1309
void overload (int && i);
1310
1310
void overload (const int & i);
1311
+ void overload (const Foo& rx, int from = -1 );
1312
+ void overload (Foo& rx, int from = -1 );
1311
1313
void dispose ();
1312
1314
};
1313
1315
You can’t perform that action at this time.
0 commit comments