Add test for overloading expect MemberDescriptors discrimination

Issue #KT-38298
This commit is contained in:
Dmitriy Dolovov
2020-04-23 14:56:05 +07:00
parent 90e888a1b6
commit 151890dde5
7 changed files with 221 additions and 0 deletions
@@ -0,0 +1,13 @@
package arm64
import kotlinx.cinterop.CPointer
import platform.posix.FILE
import platform.posix.fopen
import platform.posix.fprintf
import platform.zlib.uInt
fun test() {
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
fun f1(): /* NAVIGATION-TARGET:typealias uInt = */ uInt = TODO()
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
}
@@ -0,0 +1,13 @@
package common
import kotlinx.cinterop.CPointer
import platform.posix.FILE
import platform.posix.fopen
import platform.posix.fprintf
import platform.zlib.uInt
fun test() {
val file: CPointer< /* NAVIGATION-TARGET:expect class FILE */ FILE> = /* NAVIGATION-TARGET:external expect fun fopen */ fopen("file.txt", "r") ?: return
fun f1(): /* NAVIGATION-TARGET:expect class uInt */ uInt = TODO()
/* NAVIGATION-TARGET:external expect fun fprintf */ fprintf(null, "")
}
@@ -0,0 +1,13 @@
package x64
import kotlinx.cinterop.CPointer
import platform.posix.FILE
import platform.posix.fopen
import platform.posix.fprintf
import platform.zlib.uInt
fun test() {
val file: CPointer< /* NAVIGATION-TARGET:typealias FILE = */ FILE> = /* NAVIGATION-TARGET:external fun fopen */ fopen("file.txt", "r") ?: return
fun f1(): /* NAVIGATION-TARGET:typealias uInt = */ uInt = TODO()
/* NAVIGATION-TARGET:external fun fprintf */ fprintf(null, "")
}