Is there a smart way to extend the exported struct...
# kotlin-native
r
Is there a smart way to extend the exported structs? I would like to add a few additional things, like user defined conversion:
Copy code
auto ionspinlib = libmylib_symbols()-><http://kotlin.root.com|kotlin.root.com>.ionspin;
auto KBigInteger = ionspinlib.kotlin.bignum.integer.BigInteger;

class CBigInteger : libmylib_kref_com_ionspin_kotlin_bignum_integer_BigInteger { // KBigInteger
public:
    CBigInteger(long amount) : KBigInteger.BigInteger(amount) {} // << PROBMLEM
//    {
//        big = KBigInteger.BigInteger(amount);
//    }
    operator long() const { return 10l; }
};

CBigInteger amount = 10l;
long longAmount = amount;
it seems like I can't use the dot-notation in the constructor call
KBigInteger.BigInteger