Fix ambigity on ObjInstance#toString() #94

Closed
opened 2025-12-22 02:46:13 +03:00 by sergeych · 0 comments
Owner

when toString() is implemented in lyng, when called from kotlin toString(scope) usually calls builtin version, not the overridden one, but Lyng toString() calls ir properly, it causes bugs in expression like "result: "+value if value is an Lyng user class with implemented toString(); right now "result: "+value.toString() only works, which is ugly.

when toString() is implemented in lyng, when called from kotlin toString(scope) usually calls builtin version, not the overridden one, but Lyng toString() calls ir properly, it causes bugs in expression like `"result: "+value` if value is an Lyng user class with implemented toString(); right now `"result: "+value.toString()` only works, which is ugly.
sergeych added the
Kind/Bug
label 2025-12-22 02:46:13 +03:00
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SergeychWorks/lyng#94
No description provided.