Open isc30 opened 4 years ago
JS does not support char
type and it returns a string
when you do str[0]
, so we could define extern operator+
in dsharp for both string
and char
and it will work out of the box.
Maybe since we are already here, define Concat
member function too that calls the static
one.
For some reason, when using
operator+
fromstring
type like the following:the compiler complains:
but when using this it all works fine:
I suspect this is due to DSharp not supporting implicit conversion between
char
andstring
for this case