Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tostring does not accept wstring #10

Closed
Phlarx opened this issue Oct 11, 2021 · 0 comments
Closed

tostring does not accept wstring #10

Phlarx opened this issue Oct 11, 2021 · 0 comments
Labels
api API-related code bug Something isn't working

Comments

@Phlarx
Copy link

Phlarx commented Oct 11, 2021

The following code will produce an error:

void Main() {
  print(tostring(wstring("hello")));
}

Error:

[   ScriptRuntime] [05:19:22]  Script exception: Unable to return string representation of value with type wstring
[   ScriptRuntime] [05:19:22]    C:/Users/<user>/OpenplanetNext/Scripts/Plugin__ToStr.as (line 2, column 3)
[   ScriptRuntime] [05:19:22]      #0  void Main() (C:/Users/<user>/OpenplanetNext/Scripts/Plugin__ToStr.as line 2)

Tested both Next and MP4

@codecat codecat added bug Something isn't working api API-related code labels Oct 11, 2021
@codecat codecat closed this as completed Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api API-related code bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants