I implemented a function that is used in anko's apply recursively:
fun applyTemplateViewStyles(view: View) {
when(view) {
is EditText, TextView -> {
....
}
}
}
And I receive an error saying that "Function invocation 'TextView(...)' expected"
Since I can write an when with a clause like is 0, 1, why I can't do the same with an Android View?