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)
356356 var type = obj as PointerType ;
357357 if ( type == null ) return false ;
358358
359- return QualifiedPointee . Equals ( type . QualifiedPointee )
359+ return Pointee . Equals ( type . Pointee )
360360 && Modifier == type . Modifier ;
361361 }
362362
Original file line number Diff line number Diff line change @@ -24,6 +24,10 @@ public void TestCodeGeneration()
2424 {
2525 Bar bar = foo ;
2626 Assert . IsTrue ( Bar . Item . Item1 == bar ) ;
27+
28+ using ( var hasOverloadsWithDifferentPointerKindsToSameType =
29+ new HasOverloadsWithDifferentPointerKindsToSameType ( ) )
30+ hasOverloadsWithDifferentPointerKindsToSameType . Overload ( foo , 0 ) ;
2731 }
2832 using ( var overridesNonDirectVirtual = new OverridesNonDirectVirtual ( ) )
2933 {
Original file line number Diff line number Diff line change @@ -845,6 +845,14 @@ void HasOverloadsWithDifferentPointerKindsToSameType::overload(const int& i)
845845{
846846}
847847
848+ void HasOverloadsWithDifferentPointerKindsToSameType::overload (const Foo& rx, int from)
849+ {
850+ }
851+
852+ void HasOverloadsWithDifferentPointerKindsToSameType::overload (Foo& rx, int from)
853+ {
854+ }
855+
848856void HasOverloadsWithDifferentPointerKindsToSameType::dispose ()
849857{
850858}
Original file line number Diff line number Diff line change @@ -1308,6 +1308,8 @@ class DLL_API HasOverloadsWithDifferentPointerKindsToSameType
13081308 void overload (int & i);
13091309 void overload (int && i);
13101310 void overload (const int & i);
1311+ void overload (const Foo& rx, int from = -1 );
1312+ void overload (Foo& rx, int from = -1 );
13111313 void dispose ();
13121314};
13131315
You can’t perform that action at this time.
0 commit comments