https://kotlinlang.org logo
m

Mike Lynch

10/22/2017, 3:50 PM
Hi, so I was working on a project of mine and wanted to do something similar to "when(variable/*: Short*/) { 1 -> doSomething()}" but it things the "1" is an Int. Is there a way without casting to tell Kotlin it's a Short?