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
objectOpaque:opaquetypeA=Intvalva:A=1inlinedefa(x: A) =
x +1objectOpaque2:opaquetypeB=Opaque.Avalvb:B=Opaque.va
inlinedefb(x: B) =Opaque.a(x)
@main defTest() =
print(Opaque2.b(Opaque2.vb))
Output
-- [E173] ReferenceError:Test.scala:17:17------------------------------------17| print(Opaque2.b(Opaque2.vb))
|^^^^^^^^^^^^^^^^^^^^^|+ cannot be accessed asa member of (x$proxy1 : (Opaque2.vb :Opaque2.B) & $proxy1.B) from module classTest$package$.
|----------------------------------------------------------------------------|Inline stack trace
|--------------------------------------|This location contains code that was inlined from Test.scala:77| x +1|^^^|--------------------------------------|This location contains code that was inlined from Test.scala:714|inlinedefb(x: B) =Opaque.a(x)
|^^^^^^^^^^^----------------------------------------------------------------------------
Expectation
Should compile fine.
Note that if we remove at least one of the inlines, everything compiles fine. If we remove at least one of the opaques, everything compiles fine.
The text was updated successfully, but these errors were encountered:
Compiler version
v3.1.3 and latest main.
Minimized code
Output
Expectation
Should compile fine.
Note that if we remove at least one of the
inline
s, everything compiles fine. If we remove at least one of theopaque
s, everything compiles fine.The text was updated successfully, but these errors were encountered: