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
scalac allows one to rename wildcard to an arbitrary identifier:
scala>objectFoo { classA }
defined objectFoo
scala>importFoo.{_=>Bla}
importFoo._// A is available because the import is a wildcard one despite the rename!
scala>newA
res1:Foo.A=Foo$A@687a0e40
// Bla is not available
scala>newBla
<console>:16:error: not found: typeBlanewBla
This should be ruled out by the parser. dottyc does rule it out at the parsing time.
Discovered while carefully reading the scala spec for the purpose of implementing import renames in Kentucky Mule: gkossakowski/kentuckymule#6 (comment)
The text was updated successfully, but these errors were encountered:
scalac allows one to rename wildcard to an arbitrary identifier:
This should be ruled out by the parser. dottyc does rule it out at the parsing time.
Discovered while carefully reading the scala spec for the purpose of implementing import renames in Kentucky Mule: gkossakowski/kentuckymule#6 (comment)
The text was updated successfully, but these errors were encountered: