Kotlin when with multiple values not working when value is an android view : <p>I implemented a function that is used in anko's apply recursively:</p>

<pre><code>fun applyTemplateViewStyles(view: View) {
    when(view) {
        is EditText, TextView -&gt; {
            ....
        }
    }
}
</code></pre>

<p>And I receive an error saying that "Function invocation 'TextView(...)' expected"</p>

<p>Since I can write an when with a clause like is 0, 1, why I can't do the same with an Android View? </p>
