KT-3577 Stack overflow when resolving SAM adapter (from completion, show parameters, etc)

#KT-3577
This commit is contained in:
Evgeny Gerashchenko
2013-05-17 20:54:36 +04:00
parent 6f7d42185f
commit 5fc7c885bb
11 changed files with 174 additions and 40 deletions

View File

@@ -0,0 +1,12 @@
package test;
public interface DeepSamLoop {
interface Foo {
void foo(Bar p);
}
interface Bar {
void foo(Foo p);
}
}

View File

@@ -0,0 +1,19 @@
package test
public trait DeepSamLoop : java.lang.Object {
public trait Bar : java.lang.Object {
public abstract /*synthesized*/ fun foo(/*0*/ p0: ((test.DeepSamLoop.Bar?) -> jet.Unit)?): jet.Unit
public abstract fun foo(/*0*/ p0: test.DeepSamLoop.Foo?): jet.Unit
}
public trait Foo : java.lang.Object {
public abstract /*synthesized*/ fun foo(/*0*/ p0: ((test.DeepSamLoop.Foo?) -> jet.Unit)?): jet.Unit
public abstract fun foo(/*0*/ p0: test.DeepSamLoop.Bar?): jet.Unit
}
}
package DeepSamLoop {
public /*synthesized*/ fun Bar(/*0*/ function: (test.DeepSamLoop.Foo?) -> jet.Unit): test.DeepSamLoop.Bar
public /*synthesized*/ fun Foo(/*0*/ function: (test.DeepSamLoop.Bar?) -> jet.Unit): test.DeepSamLoop.Foo
}

View File

@@ -0,0 +1,5 @@
package test;
public interface SelfAsParameter {
void foo(SelfAsParameter p);
}

View File

@@ -0,0 +1,8 @@
package test
public /*synthesized*/ fun SelfAsParameter(/*0*/ function: (test.SelfAsParameter?) -> jet.Unit): test.SelfAsParameter
public trait SelfAsParameter : java.lang.Object {
public abstract /*synthesized*/ fun foo(/*0*/ p0: ((test.SelfAsParameter?) -> jet.Unit)?): jet.Unit
public abstract fun foo(/*0*/ p0: test.SelfAsParameter?): jet.Unit
}