```class DownloadStructure(val name: String, val l...
# announcements
i
Copy code
class DownloadStructure(val name: String, val link: String, val size: Int) {
  fun fmap (f: (String) -> String): DownloadStructure = DownloadStructure(name, f(link), size)
} // why this would cause class Redeclaration error?
m
it works for me, I’m using Kotlin 1.4.32… maybe you have another declaration of DownloadStructure somewhere that you’re overlooking?
i
yes, you're right, it's already defined in another file, thanks
👍 1