class DownloadStructure(val name: String, val link...
# android
i
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?
a
That in itself would not cause a Redeclaration error. I would search your whole project for the string: "class DownloadStructure" -- you'll probably find you've declared that class another time.