Hi
I have a kotlin warning that I don't understand.
I have an enum type parameter, eg:
enum class FileOperationType {
DOWNLOAD,
DOWNLOAD_AND_MOVE,
DOWNLOAD_AND_REMOVE
}
and a function which expects a parameter of that type.
fun downloadAllToLocalFolder(
fileOperation: FileOperation,
...
In a test I invoke that function:
target.downloadAllToLocalFolder(
FileOperation(DOWNLOAD ...
In this line kotlin issues this warning:
Unexpected fileOperation: DOWNLOAD
what does it mean?