-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement
Description
Compiler version
3.6.4
Minimized example
sealed trait IsVal[A]:
type V
def cons(v: V): A
def decons(a: A): V
abstract class Get[A]:
def map[B](f: A => B): Get[B]
object Mappings:
given [A](using wrapped: IsVal[A], get: Get[wrapped.V]): Get[A] = get.map(wrapped.cons)
Output Error/Warning message
This old given syntax is no longer supported; use `=>` instead of `:`
given [A](using wrapped: IsVal[A], get: Get[wrapped.V]): Get[A] = get.map(wrapped.cons)
Why this Error/Warning was not helpful
The message was unhelpful because it does not show how to use the new syntax (or if it is possible at all).
paul-danilin-moia and gchudnovsom-snytt, alcidesfernandes, hegetim, BeniVF, gchudnov and 1 more
Metadata
Metadata
Assignees
Labels
area:reportingError reporting including formatting, implicit suggestions, etcError reporting including formatting, implicit suggestions, etcbetter-errorsIssues concerned with improving confusing/unhelpful diagnostic messagesIssues concerned with improving confusing/unhelpful diagnostic messagesitype:enhancement