mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-04-05 08:31:31 +00:00
Added test for ambiguous SAM adapters within one class.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package test;
|
||||
|
||||
import java.io.Closeable;
|
||||
|
||||
public class AmbiguousAdapters {
|
||||
public void foo(Runnable r) {
|
||||
}
|
||||
|
||||
public void foo(Closeable c) {
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user