You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hmm, interesting... It looks like the compiler internally uses ContextualMethodType rather than just MethodType to express a method with (using ...) parameters clause but currently there seems no way to create contextual methods from the quotes' reflect API. @nicolasstucki are there any plans to add this functionality in the nearest future?
It allows to create Contextual and Implicit MethodTypes. MethodTypeKind
abstracts away the `MethodTypeCompanion` implementation into a simple
enum style choice for a newly added MethodType apply method. The
MethodType unapply is kept as it was for source compatibility, instead
users are encouraged to use `isImplicit` and `isContextual` methods.
Based on #18499Fixes#18477
Hmm, interesting... It looks like the compiler internally uses
ContextualMethodType
rather than justMethodType
to express a method with(using ...)
parameters clause but currently there seems no way to create contextual methods from the quotes' reflect API. @nicolasstucki are there any plans to add this functionality in the nearest future?Originally posted by @prolativ in #14056 (reply in thread)
The text was updated successfully, but these errors were encountered: