mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-04 00:21:30 +00:00
KT-3577 Stack overflow when resolving SAM adapter (from completion, show parameters, etc)
#KT-3577
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package test;
|
||||
|
||||
public interface DeepSamLoop {
|
||||
|
||||
interface Foo {
|
||||
void foo(Bar p);
|
||||
}
|
||||
|
||||
interface Bar {
|
||||
void foo(Foo p);
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test;
|
||||
|
||||
public interface SelfAsParameter {
|
||||
void foo(SelfAsParameter p);
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user