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
// This works:inlineval`1`:1=1defget1:1= `1`
// But this doesn't:opaquetypeOne=1inlinevalOne:One=1defgetOne:One=One// getter One is declared as erased, but is in fact used
Output
[error] 32|defgetOne:One=One
[error] |^^^
[error] | getter One is declared aserased, but is in fact used
Expectation
It should be possible to use an inline val of an opaque type alias for a literal type.
The text was updated successfully, but these errors were encountered:
`inline val`s cannot contain opaque aliases as these cannot be inlined
through their type due to their opaqueness. We can support `inline def`
with opaque types.
Fixesscala#13851Fixesscala#13852
`inline val`s cannot contain opaque aliases as these cannot be inlined
through their type due to their opaqueness. We can support `inline def`
with opaque types.
Fixesscala#13851Fixesscala#13852
Compiler version
3.1.1-RC1
Minimized code
Output
Expectation
It should be possible to use an
inline val
of an opaque type alias for a literal type.The text was updated successfully, but these errors were encountered: