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

Проблема при получении объекта внешней компоненты как результата экспортной функции другого модуля #1479

Open
Bayselonarrend opened this issue Dec 21, 2024 · 0 comments
Milestone

Comments

@Bayselonarrend
Copy link

Попытка получения объекта внешней компоненты в качестве возвращаемого значения экспортной функции из другого модуля приводит к ошибке

Ошибка в строке: 19 / Внешнее исключение (System.InvalidCastException): Unable to cast object of type 'OneScript.StandardLibrary.NativeApi.NativeApiComponent' to type 'OneScript.Values.BslValue'.}

Воспроизведение ошибки

  1. Создать экспортную функцию иницализации объекта внешней компоненты (у меня была компонента в zip) в одном модуле
  2. Попытаться получить этот объект как результат функции в другом модуле

image

Окружение

  • ОС: Windows 11, Ubuntu 24.04.1 LTS (WSL)
  • Версия: 2.0.0.7-rc5+593a5065903bb88d51afd2b2a96db325f73b1644

Дополнительная информация
В версии OS 1.9.2 не воспроизводится
В архиве код со скриншота

bug.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants