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
Aaron Quaday
04/18/2021, 5:51 PM
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.