I have a name clash for a few different classes. I...
# announcements
j
I have a name clash for a few different classes. Is it possible to rename it globally instead of needing to put
import foo.Bar as bBar
in all my files?
k
Rename the class, otherwise I don't think so.
r
you could use a
typealias
and reference that everywhere instead
j
Yeah I tried the typealias but it doesn't work if I use method references,
printer::print
r
Really? I wonder if that's a bug. Seems like the sort of thing you should be able to do, but I haven't actually done much with type aliases myself.