Add test on rewrite at slice FUNCTOR

This commit is contained in:
Dmitry Savvinov
2018-12-20 12:41:13 +03:00
parent 0b1ff1a457
commit 594a6588f9
4 changed files with 31 additions and 0 deletions
@@ -0,0 +1,10 @@
// See KT-28847
class Foo(val str: String?) {
val first = run {
str.isNullOrEmpty()
second
}
val second = str.isNullOrEmpty()
}