KT-328 completion //Local function in function literals cause exceptions
This commit is contained in:
@@ -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,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;
|
||||
|
||||
Reference in New Issue
Block a user