correctly generate 'in' expressions with IntRange on RHS and a type other than Int on LHS

This commit is contained in:
Dmitry Jemerov
2015-03-04 19:45:49 +01:00
parent 1188be9070
commit 2835459920
3 changed files with 14 additions and 2 deletions
@@ -0,0 +1,5 @@
fun IntRange.contains(s: String): Boolean = true
fun box(): String {
return if ("s" in 0..1) "OK" else "fail"
}