Add regression tests for obsolete issues

#KT-1291 Obsolete
 #KT-2895 Obsolete
 #KT-3060 Obsolete
 #KT-3298 Obsolete
 #KT-3613 Obsolete
 #KT-3862 Obsolete
This commit is contained in:
Alexander Udalov
2014-02-13 04:41:38 +04:00
parent 320c23494f
commit 8b918ef1aa
7 changed files with 119 additions and 0 deletions
@@ -0,0 +1,13 @@
var result = ""
fun result(r: String) { result = r }
object Foo {
private fun String.plus() = "(" + this + ")"
fun foo() = { result(+"Stuff") }()
}
fun box(): String {
Foo.foo()
return if (result == "(Stuff)") "OK" else "Fail $result"
}