Files
kotlin-fork/compiler/testData/multiplatform/incompatibleCallables/jvm.kt
T
Alexander Udalov b87abc9f0f Relax rules related to noinline/crossinline/reified in header/impl functions
See the comments in KT-18752 for the current resolution

 #KT-15377 Fixed
 #KT-18752 Fixed
2017-08-25 15:40:38 +03:00

35 lines
776 B
Kotlin
Vendored

impl fun f1(): String = ""
impl fun f2(otherName: String) {}
impl fun f3(name: Double) {}
impl fun Double.f3ext() {}
impl fun String.f4() {}
impl fun f5(name: String) {}
impl fun f6(p2: Int) {}
impl fun <K, V> f7() {}
public impl fun f8() {}
internal impl fun f9() {}
private impl fun f10() {}
impl fun <T : Annotation> f11() {}
impl fun <U : MutableList<out String>> f12() {}
impl fun <A, B : Comparable<B>> f13() {}
impl inline fun <reified X> f14() {}
impl inline fun <Y> f15() {}
impl fun f16(s: String = "") {}
impl fun f17(s: Array<out String>) {}
impl fun f18(vararg s: String) {}
impl inline fun f19(crossinline s: () -> Unit) {}
impl inline fun f20(noinline s: () -> Unit) {}
impl fun f21(c: Unit.() -> Unit) {}
impl fun f22(c: suspend Unit.() -> Unit) {}