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
// import language.experimental.erasedTermsimportscala.compiletime.erasedValuetypeUnivEq[A]
objectUnivEq:
erased defforce[A]:UnivEq[A] = erasedValue
extension [A](erased proof: UnivEq[A])
inlinedefunivEq(a: A, b: A):Boolean=
a == b
With -Yerased-terms or the commented line (after #11695) is merged.
Output
-- [E040] SyntaxError:Foo.scala:6:16-----------------------------------------6| extension [A](erased proof: UnivEq[A])
|^^^^^^| an identifier expected, but 'erased' found
Expectation
It should compile
The text was updated successfully, but these errors were encountered:
Compiler version
3.0.0-RC1
Minimized example
With
-Yerased-terms
or the commented line (after #11695) is merged.Output
Expectation
It should compile
The text was updated successfully, but these errors were encountered: