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
typeFoogivenmyFoo1 as Foo { typeX=Int } =???// errortypeBar=Foo { typeX=Int }
givenmyFoo2 as Bar=???
Compilation output
2|givenmyFoo1 as Foo { typeX=Int } =???|^| end of statement expected but '=' found
-- [E040] SyntaxError:Foo.scala:2:39-----------------------------------------2|givenmyFoo1 as Foo { typeX=Int } =???|^^^|';' expected, but identifier found
--Error:Foo.scala:2:16-------------------------------------------------------2|givenmyFoo1 as Foo { typeX=Int } =???|^^^|Foo is not a classtype
expectation
given myFoo1 as Foo { type X = Int } = ???
myFoo1 should be handled as a given alias and should compile the same way myFoo2 does.
The text was updated successfully, but these errors were encountered:
minimized code
Compilation output
expectation
myFoo1
should be handled as agiven
alias and should compile the same waymyFoo2
does.The text was updated successfully, but these errors were encountered: