doesn't work `infix` with `Enum<*>`?
# getting-started
e
doesn't work
infix
with
Enum<*>
?
k
Can you elaborate a bit? Maybe show us the code that doesn't work?
e
sure,
infix fun checkProgram(program: Enum<*>) = checkProgram(programName[program])
but
checkProgram Program.RENDER
gets error highlighting
Copy code
None of the following functions can be called with the arguments supplied.
Of course the functional method works flawness
k
How can that be
infix
when it only has one argument? Is it defined inside another class?
e
sorry, my bad, I was looking at one alias
it works flawness