KT-328 completion //Local function in function literals cause exceptions

This commit is contained in:
svtk
2011-12-09 17:37:38 +04:00
parent 4d303b0225
commit 63d74d41af
12 changed files with 79 additions and 50 deletions
@@ -1,7 +1,7 @@
namespace a {
val foo = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem">bar()</error>
val foo = bar()
fun bar() = foo
fun bar() = <error descr="[TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM] Type checking has run into a recursive problem">foo</error>
}
namespace b {
+1 -1
View File
@@ -1,7 +1,7 @@
// JET-81 Assertion fails when processing self-referring anonymous objects
val y = object {
val a = y;
val a = <error>y</error>
}
val z = y.a;