Explicit conversions not using converters #4432

PMunch opened this Issue Jun 30, 2016 · 0 comments


None yet

2 participants

PMunch commented Jun 30, 2016

When defining new types it is often practical to write converters in order to be able to pass the type around to various built-in calls or external libraries. However the explicit conversion of the type T(variable) does not use converters defined for the type of variable to T. This means that in order to use converters one must use implicit conversion. Most of the time this is not a problem when functions take a specific type as parameter but when using generics it can cause weird problems when deeper into the function the variable is explicitly converted.

@Araq Araq added the Showstopper label Jul 28, 2016
@Araq Araq added a commit that closed this issue Jul 28, 2016
@Araq Araq fixes #4432 1ddd2a3
@Araq Araq closed this in 1ddd2a3 Jul 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment