Add some new tests on functions and extension functions
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
// This test checks that annotations on extension function types are preserved. See the corresponding .txt file
|
||||
|
||||
annotation class ann
|
||||
|
||||
interface Some {
|
||||
fun f1(): String.() -> Int
|
||||
fun f2(): @extension String.() -> Int
|
||||
fun f3(): @ann String.() -> Int
|
||||
fun f4(): @extension @ann String.() -> Int
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package
|
||||
|
||||
internal interface Some {
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
internal abstract fun f1(): kotlin.String.() -> kotlin.Int
|
||||
internal abstract fun f2(): @[kotlin.extension()] kotlin.String.() -> kotlin.Int
|
||||
internal abstract fun f3(): @[ann()] kotlin.String.() -> kotlin.Int
|
||||
internal abstract fun f4(): @[kotlin.extension() ann()] kotlin.String.() -> kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
|
||||
internal final annotation class ann : kotlin.Annotation {
|
||||
public constructor ann()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
Reference in New Issue
Block a user