Suggestions from expression itself to have higher priority + fixed incorect upper case naming
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user