Output: Handle explicit interface implementation of indexers correctly

This commit is contained in:
Katy Coe
2019-12-11 10:27:52 +01:00
parent d728421d12
commit b8df3d7100
5 changed files with 233 additions and 168 deletions

View File

@@ -55,5 +55,20 @@ namespace Il2CppTests.TestSources
{
void IGeneric<KeyValuePair<int, double>>.GenericMethod(KeyValuePair<int, double> t) {}
}
// Explicit implementation of an indexer
interface IIndexer
{
bool this[int i] { get; }
}
internal class ImplementsIndexer : IIndexer
{
// Normal indexer
public bool this[int i] => default;
// Explicit interface indexer
bool IIndexer.this[int i] => default;
}
}
#pragma warning restore CS0169