Suggestions from expression itself to have higher priority + fixed incorect upper case naming

This commit is contained in:
Valentin Kipyatkov
2015-06-26 22:03:06 +03:00
parent 4a52247ab7
commit db144a6121
35 changed files with 72 additions and 80 deletions
@@ -5,8 +5,8 @@ interface T {
interface U: T
fun test(t: T): Int {
val i = t.foo()
val foo = t.foo()
return if (t is U)
i + 1
else i
foo + 1
else foo
}