public static class Program
{
public int Main(int argc, AnsiChar** argv)
{
TestClass type = typeof(Program);
// compile OK
// We have to convert TestClass to Class explicitly because of this bug:
// https://talk.remobjects.com/t/mapped-class-to-class-cant-work-on-ios
Class field1 = (Class)type;
// compile OK before, failed on 8.3.90.1953:
// Undefined symbols for architecture i386:
// "_OBJC_CLASS_$_Class", referenced from: objc-class-ref in IOSTest.o
// ld: symbol(s) not found for architecture i386
Class field2 = type.mappedTarget;
}
}
public __mapped class TestClass => Class{
public Class mappedTarget => __mapped;
}
Thanks, logged as bugs://74695
bugs://74695 got closed with status nochangereq.
This looks like it’s long been fixed.