Added tests on labels

#KT-1703 Fixed
 #KT-361 Fixed
 #KT-3920 Fixed
 #KT-3988 Fixed
 #KT-4247 Fixed
 #KT-4586 Fixed
 #KT-4603 Fixed
 #KT-591 Fixed
This commit is contained in:
Svetlana Isakova
2014-05-14 13:57:14 +04:00
parent a02af7344e
commit 69e5444ddf
10 changed files with 190 additions and 1 deletions
@@ -0,0 +1,25 @@
trait A {
fun foo()
}
trait B {
fun bar()
}
fun B.b() {
object : A {
override fun foo() {
this@b.bar()
}
}
}
fun test() {
@b { B.() ->
object : A {
override fun foo() {
this@b.bar()
}
}
}
}