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
Sometimes one still encounters annoying errors saying a context should be C with AnyRef instead of just C.
This basically happens when using constructs that return IR[T,{}], such as Const(123) because Const is defined as [T: IRType](v: T): IR[T,{}]. For example:
Sometimes one still encounters annoying errors saying a context should be
C with AnyRef
instead of justC
.This basically happens when using constructs that return
IR[T,{}]
, such asConst(123)
becauseConst
is defined as[T: IRType](v: T): IR[T,{}]
. For example:This code fails to compile with:
The text was updated successfully, but these errors were encountered: