[K/N] KFC-446: K2 platform: Native alpha
Merge-request: KT-MR-7905 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
97be632c9a
commit
924898afb7
@@ -9,6 +9,7 @@ dependencies {
|
||||
api(project(":compiler:cli"))
|
||||
api(project(":compiler:frontend"))
|
||||
api(project(":compiler:backend-common"))
|
||||
api(project(":compiler:fir:fir-serialization"))
|
||||
api(project(":compiler:ir.backend.common"))
|
||||
api(project(":compiler:ir.serialization.js"))
|
||||
api(project(":compiler:ir.tree"))
|
||||
|
||||
@@ -61,6 +61,7 @@ import org.jetbrains.kotlin.fir.pipeline.runCheckers
|
||||
import org.jetbrains.kotlin.fir.pipeline.runResolution
|
||||
import org.jetbrains.kotlin.fir.resolve.providers.firProvider
|
||||
import org.jetbrains.kotlin.fir.resolve.providers.impl.FirProviderImpl
|
||||
import org.jetbrains.kotlin.fir.serialization.serializeSingleFirFile
|
||||
import org.jetbrains.kotlin.fir.session.FirJsSessionFactory
|
||||
import org.jetbrains.kotlin.fir.session.FirSessionConfigurator
|
||||
import org.jetbrains.kotlin.incremental.components.ExpectActualTracker
|
||||
|
||||
+4
-3
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.test.frontend.fir
|
||||
package org.jetbrains.kotlin.fir.session
|
||||
|
||||
import org.jetbrains.kotlin.config.LanguageVersionSettings
|
||||
import org.jetbrains.kotlin.fir.*
|
||||
@@ -16,13 +16,13 @@ import org.jetbrains.kotlin.fir.resolve.providers.impl.FirBuiltinSymbolProvider
|
||||
import org.jetbrains.kotlin.fir.resolve.providers.impl.FirCloneableSymbolProvider
|
||||
import org.jetbrains.kotlin.fir.scopes.FirKotlinScopeProvider
|
||||
import org.jetbrains.kotlin.fir.scopes.FirPlatformClassMapper
|
||||
import org.jetbrains.kotlin.fir.session.FirAbstractSessionFactory
|
||||
import org.jetbrains.kotlin.fir.session.FirSessionConfigurator
|
||||
import org.jetbrains.kotlin.library.metadata.resolver.KotlinResolvedLibrary
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
|
||||
object FirNativeSessionFactory : FirAbstractSessionFactory() {
|
||||
fun createLibrarySession(
|
||||
mainModuleName: Name,
|
||||
resolvedLibraries: List<KotlinResolvedLibrary>,
|
||||
sessionProvider: FirProjectSessionProvider,
|
||||
dependencyListForCliModule: DependencyListForCliModule,
|
||||
languageVersionSettings: LanguageVersionSettings,
|
||||
@@ -38,6 +38,7 @@ object FirNativeSessionFactory : FirAbstractSessionFactory() {
|
||||
createKotlinScopeProvider = { FirKotlinScopeProvider { _, declaredMemberScope, _, _ -> declaredMemberScope } },
|
||||
createProviders = { session, builtinsModuleData, kotlinScopeProvider ->
|
||||
listOf(
|
||||
KlibBasedSymbolProvider(session, moduleDataProvider, kotlinScopeProvider, resolvedLibraries),
|
||||
FirBuiltinSymbolProvider(session, builtinsModuleData, kotlinScopeProvider),
|
||||
FirCloneableSymbolProvider(session, builtinsModuleData, kotlinScopeProvider),
|
||||
)
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.test.frontend.fir
|
||||
package org.jetbrains.kotlin.fir.session
|
||||
|
||||
import org.jetbrains.kotlin.fir.resolve.BodyResolveComponents
|
||||
import org.jetbrains.kotlin.fir.resolve.calls.ConeCallConflictResolverFactory
|
||||
@@ -8,6 +8,7 @@ dependencies {
|
||||
implementation(project(":core:compiler.common.jvm"))
|
||||
implementation(project(":core:deserialization.common.jvm"))
|
||||
implementation(project(":compiler:fir:fir-deserialization"))
|
||||
implementation(project(":compiler:ir.serialization.common"))
|
||||
|
||||
api(project(":compiler:fir:cones"))
|
||||
api(project(":compiler:fir:tree"))
|
||||
|
||||
+1
-5
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
package org.jetbrains.kotlin.ir.backend.js
|
||||
package org.jetbrains.kotlin.fir.serialization
|
||||
|
||||
import org.jetbrains.kotlin.backend.common.serialization.metadata.buildKlibPackageFragment
|
||||
import org.jetbrains.kotlin.builtins.StandardNames
|
||||
@@ -12,10 +12,6 @@ import org.jetbrains.kotlin.fir.declarations.*
|
||||
import org.jetbrains.kotlin.fir.declarations.utils.classId
|
||||
import org.jetbrains.kotlin.fir.packageFqName
|
||||
import org.jetbrains.kotlin.fir.resolve.ScopeSession
|
||||
import org.jetbrains.kotlin.fir.serialization.FirElementAwareStringTable
|
||||
import org.jetbrains.kotlin.fir.serialization.FirElementSerializer
|
||||
import org.jetbrains.kotlin.fir.serialization.FirSerializerExtension
|
||||
import org.jetbrains.kotlin.fir.serialization.TypeApproximatorForMetadataSerializer
|
||||
import org.jetbrains.kotlin.metadata.ProtoBuf
|
||||
import org.jetbrains.kotlin.metadata.deserialization.BinaryVersion
|
||||
import org.jetbrains.kotlin.name.ClassId
|
||||
+1
@@ -27,6 +27,7 @@ public final class InTextDirectivesUtils {
|
||||
|
||||
public static final String IGNORE_BACKEND_DIRECTIVE_PREFIX = "// IGNORE_BACKEND: ";
|
||||
public static final String IGNORE_BACKEND_K1_DIRECTIVE_PREFIX = "// IGNORE_BACKEND_K1: ";
|
||||
public static final String IGNORE_BACKEND_K2_DIRECTIVE_PREFIX = "// IGNORE_BACKEND_K2: ";
|
||||
|
||||
public static final String[] IGNORE_BACKEND_DIRECTIVE_PREFIXES = { IGNORE_BACKEND_DIRECTIVE_PREFIX, IGNORE_BACKEND_K1_DIRECTIVE_PREFIX };
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// IGNORE_LEAKED_INTERNAL_TYPES: KT-54517
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// MODULE: lib
|
||||
// FILE: l1.kt
|
||||
package ann
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND: WASM
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
|
||||
//test [], get and iterator calls
|
||||
fun test(createIntNotLong: Boolean): String {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
|
||||
fun test(b: Boolean): String {
|
||||
val a = if (b) IntArray(5) else LongArray(5)
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: KT-46419, ILT conversions to Byte and Short are not supported by design
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: KT-46419, ILT conversions to Byte and Short are not supported by design
|
||||
|
||||
fun box(): String {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: KT-46419, ILT conversions to Byte and Short are not supported by design
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: KT-46419, ILT conversions to Byte and Short are not supported by design
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// KT-55469
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
fun equals1(a: Double, b: Double) = a.equals(b)
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: -AbstractClassMemberNotImplementedWithIntermediateAbstractClass
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: don't support legacy feature
|
||||
|
||||
interface A {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: -AbstractClassMemberNotImplementedWithIntermediateAbstractClass
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: don't support legacy feature
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
+3
@@ -1,3 +1,6 @@
|
||||
// KT-55461
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
fun test(f: (Int, Int) -> Array<Int>) =
|
||||
f('O'.toInt(), 'K'.toInt())
|
||||
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-55462
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-55462
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-55462
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
+2
@@ -2,6 +2,8 @@
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-55462
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
+2
@@ -2,6 +2,8 @@
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-55462
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
+2
@@ -2,6 +2,8 @@
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// KT-55462
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
// !LANGUAGE: -ForbidUsingExtensionPropertyTypeParameterInDelegate
|
||||
//For KT-6020
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
import kotlin.reflect.KProperty1
|
||||
import kotlin.reflect.KMutableProperty1
|
||||
import kotlin.reflect.KProperty
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: result.getMethod OK in FE1.0, unresolved in FIR
|
||||
|
||||
class C(val value: String) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: result.getMethod OK in FE1.0, unresolved in FIR
|
||||
// FULL_JDK
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// KT-55464
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// MODULE: lib
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// KT-55465
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
package lib
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// !OPT_IN: kotlin.ExperimentalMultiplatform
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// KT-55469
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// WITH_STDLIB
|
||||
fun foo(): Array<Boolean> {
|
||||
return arrayOf(
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// MODULE: lib
|
||||
// FILE: Typography.kt
|
||||
object Typography {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// WITH_STDLIB
|
||||
|
||||
import kotlin.math.*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// WITH_STDLIB
|
||||
|
||||
const val a = "INT " + 0x8fffffffU
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
// WASM_MUTE_REASON: FAILS_IN_JS_IR
|
||||
// IGNORE_BACKEND: JS, JS_IR, NATIVE
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, NATIVE
|
||||
// FIR status: value: 0 should have type Long
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// KT-55458
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
val arr = arrayOf("a", "b", "c", "d")
|
||||
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// KT-55458
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
val xs = "abcd"
|
||||
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// KT-55458
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
val xs = listOf("a", "b", "c", "d")
|
||||
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// KT-55458
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
val xs = listOf("a", "b", "c", "d").asSequence()
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// LANGUAGE: -ProhibitSimplificationOfNonTrivialConstBooleanExpressions
|
||||
// IGNORE_FIR_DIAGNOSTICS
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
var field: Int = 0
|
||||
|
||||
fun next(): Int {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
|
||||
|
||||
import kotlin.coroutines.*
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// KT-55464
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// WITH_COROUTINES
|
||||
// WITH_STDLIB
|
||||
// MODULE: lib(support)
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: [IR VALIDATION] Duplicate IR node: FUN GENERATED_DATA_CLASS_MEMBER name:toString
|
||||
// CHECK_BYTECODE_LISTING
|
||||
// FIR_IDENTICAL
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: [IR VALIDATION] Duplicate IR node: FUN GENERATED_DATA_CLASS_MEMBER name:equals
|
||||
|
||||
interface A {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: don't support legacy feature (prefix increment calls getter twice). fail 2: anone1
|
||||
var inc: String = ""
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status:
|
||||
// java.lang.StackOverflowError
|
||||
// at Nat$Companion$invoke$1.next(kt36853_fibonacci.kt:40) ...
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: don't support legacy feature. UNINITIALIZED_PARAMETER y. See KT-49800
|
||||
tailrec fun foo(x: () -> String? = { y }, y: String = "fail"): String? {
|
||||
if (y == "start")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// FILE: lib.kt
|
||||
interface ResolutionScope {
|
||||
fun getContributedDescriptors(s: String = "OK"): String
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
|
||||
enum class Test {
|
||||
A(0),
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
enum class Test(val x: Int, val str: String) {
|
||||
OK;
|
||||
constructor(x: Int = 0) : this(x, "OK")
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
enum class Test(val x: Int, val str: String) {
|
||||
OK;
|
||||
constructor(vararg xs: Int) : this(xs.size + 42, "OK")
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
package test
|
||||
|
||||
enum class My(val s: String) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +EnumEntries
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// IGNORE_BACKEND: JS, JVM
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6
|
||||
// KT-55463
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6
|
||||
// KT-55463
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
// FILE: test.kt
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
|
||||
+2
@@ -1,6 +1,8 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS, JS_IR, JS_IR_ES6
|
||||
// KT-55463
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
fun checkEqual(x: Any, y: Any) {
|
||||
if (x != y || y != x) throw AssertionError("$x and $y should be equal")
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
// KT-55469
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
fun equals1(a: Double, b: Double) = a.equals(b)
|
||||
|
||||
fun equals2(a: Double?, b: Double?) = a!!.equals(b!!)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: don't support legacy feature; questionable test, probably should not support.
|
||||
// Currently fails because prefix increment only calls getter once.
|
||||
var log = ""
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: ARGUMENT_TYPE_MISMATCH at contribute arguments
|
||||
// TARGET_BACKEND: JVM
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +UnrestrictedBuilderInference
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER on lazy call (Name3, T)
|
||||
// WITH_STDLIB
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: different behavour with FE 1.0, reported `NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER`
|
||||
|
||||
fun box(): String {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// !LANGUAGE: +UnrestrictedBuilderInference
|
||||
// !DIAGNOSTICS: -DEPRECATION -OPT_IN_IS_NOT_ENABLED
|
||||
// WITH_STDLIB
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: NONE_APPLICABLE at all equals calls
|
||||
import kotlin.experimental.ExperimentalTypeInference
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: Disabling of StrictOnlyInputTypesChecks is not supported by FIR
|
||||
// WITH_STDLIB
|
||||
// !LANGUAGE: -StrictOnlyInputTypesChecks
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: Disabling of StrictOnlyInputTypesChecks is not supported by FIR
|
||||
// WITH_STDLIB
|
||||
// !LANGUAGE: -StrictOnlyInputTypesChecks
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// !LANGUAGE: +UnrestrictedBuilderInference -UseBuilderInferenceOnlyIfNeeded
|
||||
// WITH_STDLIB
|
||||
// !DIAGNOSTICS: -OPT_IN_USAGE_ERROR -CAST_NEVER_SUCCEEDS
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: Initializer type mismatch at first val x = : expected kotlin/collections/MutableList<kotlin/CharSequence>, actual kotlin/collections/MutableList<kotlin/String>
|
||||
|
||||
import kotlin.experimental.ExperimentalTypeInference
|
||||
|
||||
+2
@@ -1,4 +1,6 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// KT-55468
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
fun <T> myRun(action: () -> T): T = action()
|
||||
fun foo(): String = "foo"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// WITH_REFLECT
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: KotlinNothingValueException from create()
|
||||
|
||||
fun <T : A> create(modelClass: Class<T>): T {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: Disabling of StrictOnlyInputTypesChecks is not supported by FIR
|
||||
// WITH_STDLIB
|
||||
// SKIP_TXT
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// LANGUAGE: +InlineClassImplementationByDelegation
|
||||
|
||||
interface I {
|
||||
|
||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
||||
// WITH_STDLIB
|
||||
// IGNORE_LIGHT_ANALYSIS
|
||||
// IGNORE_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// LANGUAGE: +InlineClassImplementationByDelegation, +GenericInlineClassParameter
|
||||
|
||||
interface I {
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// ISSUE: KT-52057
|
||||
// MODULE: lib
|
||||
// FILE: Class.kt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
|
||||
// KT-40686
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JS_IR
|
||||
// IGNORE_BACKEND_K2: JS_IR, NATIVE
|
||||
// WITH_STDLIB
|
||||
import kotlin.test.assertEquals
|
||||
|
||||
|
||||
+2
@@ -1,5 +1,7 @@
|
||||
// IGNORE_BACKEND_K1: JS_IR, NATIVE
|
||||
// ISSUE: KT-55318
|
||||
// KT-55486: native linker error with `-Pkotlin.internal.native.test.cacheMode=STATIC_EVERYWHERE`
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
+2
@@ -3,6 +3,8 @@
|
||||
// WASM_MUTE_REASON: IGNORED_IN_NATIVE
|
||||
// SKIP_MANGLE_VERIFICATION
|
||||
//For KT-6020
|
||||
// KT-24643: language version in K2 is >= 1.8
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, NATIVE
|
||||
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
|
||||
// MODULE: lib
|
||||
// FILE: common.kt
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
// !LANGUAGE: -ForbidUsingExtensionPropertyTypeParameterInDelegate
|
||||
//For KT-6020
|
||||
// KT-24643: language version in K2 is >= 1.8
|
||||
// IGNORE_BACKEND_K2: NATIVE
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: lib.kt
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: ARGUMENT_TYPE_MISMATCH at ok.z(fail), actual String, expected T
|
||||
// MODULE: lib
|
||||
// FILE: l1.kt
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// FILE: lib.kt
|
||||
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// WASM_MUTE_REASON: EXPECT_DEFAULT_PARAMETERS
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// FILE: common.kt
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// MODULE: lib
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
|
||||
// FILE: lib.kt
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
|
||||
// FILE: lib.kt
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// FILE: common.kt
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// FILE: common.kt
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// IGNORE_BACKEND: JS_IR, WASM
|
||||
// JS IR & Wasm: https://youtrack.jetbrains.com/issue/KT-51225
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// MODULE: lib
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
|
||||
// FILE: common.kt
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// WITH_COROUTINES
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// IGNORE_BACKEND: WASM
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: default argument mapping in MPP isn't designed yet
|
||||
// WITH_STDLIB
|
||||
// MODULE: lib
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: expect/actual in the same module (ACTUAL_WITHOUT_EXPECT)
|
||||
// !LANGUAGE: +MultiPlatformProjects
|
||||
// FILE: common.kt
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR, JS_IR, NATIVE
|
||||
// FIR status: Disabling of StrictOnlyInputTypesChecks is not supported by FIR
|
||||
// WITH_STDLIB
|
||||
// !LANGUAGE: -StrictOnlyInputTypesChecks
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user