Added test for ambiguous SAM adapters within one class.

This commit is contained in:
Evgeny Gerashchenko
2013-06-07 19:51:22 +04:00
parent 4980dacd33
commit cfc99b941a
5 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package test;
import java.io.Closeable;
public class AmbiguousAdapters {
public void foo(Runnable r) {
}
public void foo(Closeable c) {
}
}

View File

@@ -0,0 +1,9 @@
package test
public open class AmbiguousAdapters : java.lang.Object {
public constructor AmbiguousAdapters()
public open /*synthesized*/ fun foo(/*0*/ p0: (() -> jet.Unit)?): jet.Unit
public open /*synthesized*/ fun foo(/*0*/ p0: (() -> jet.Unit)?): jet.Unit
public open fun foo(/*0*/ p0: java.io.Closeable?): jet.Unit
public open fun foo(/*0*/ p0: java.lang.Runnable?): jet.Unit
}