diff --git a/tests/UTF16/UTF16.Tests.cs b/tests/UTF16/UTF16.Tests.cs index c9f1a2ed..8f5221bf 100644 --- a/tests/UTF16/UTF16.Tests.cs +++ b/tests/UTF16/UTF16.Tests.cs @@ -15,6 +15,5 @@ public class UTF16Tests // TODO: move this, it has nothing to do with Unicode, it's here only not to break the CLI branch Assert.That(foo[0], Is.EqualTo(5)); - Assert.That(foo.OperatorSubscript(0), Is.EqualTo(IntPtr.Zero)); } } diff --git a/tests/UTF16/UTF16.cpp b/tests/UTF16/UTF16.cpp index ed65b3d8..1e7ee0ca 100644 --- a/tests/UTF16/UTF16.cpp +++ b/tests/UTF16/UTF16.cpp @@ -6,7 +6,7 @@ int Foo::operator[](int i) const return 5; } -char* Foo::operator[](int i) +int Foo::operator[](int i) { - return 0; + return 5; } \ No newline at end of file diff --git a/tests/UTF16/UTF16.h b/tests/UTF16/UTF16.h index 16f29e28..6893aabc 100644 --- a/tests/UTF16/UTF16.h +++ b/tests/UTF16/UTF16.h @@ -11,7 +11,7 @@ public: // TODO: move this, it has nothing to do with Unicode, it's here only not to break the CLI branch int operator[](int i) const; - char* operator[](int i); + int operator[](int i); }; DLL_API int FooCallFoo(Foo* foo);