From 7c084121fb9cbe017539e854aa7f4bea4c1ee5c9 Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Thu, 11 Jul 2024 16:06:11 +0100 Subject: [PATCH] Kotlin: Fixes for 2.0.20-Beta2 --- java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt | 2 ++ .../kotlin/utils/versions/v_2_0_20-Beta2/getKotlinType.kt | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 java/kotlin-extractor/src/main/kotlin/utils/versions/v_2_0_20-Beta2/getKotlinType.kt diff --git a/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt b/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt index 10df392f8b12a..3be94d65690f8 100644 --- a/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt +++ b/java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt @@ -1511,6 +1511,8 @@ open class KotlinUsesExtractor( } } } + is IrDynamicType -> {} + is IrErrorType -> {} } return t } diff --git a/java/kotlin-extractor/src/main/kotlin/utils/versions/v_2_0_20-Beta2/getKotlinType.kt b/java/kotlin-extractor/src/main/kotlin/utils/versions/v_2_0_20-Beta2/getKotlinType.kt new file mode 100644 index 0000000000000..37fb2a700410b --- /dev/null +++ b/java/kotlin-extractor/src/main/kotlin/utils/versions/v_2_0_20-Beta2/getKotlinType.kt @@ -0,0 +1,5 @@ +package com.github.codeql.utils.versions + +import org.jetbrains.kotlin.ir.types.IrSimpleType + +fun getKotlinType(s: IrSimpleType) = s.originalKotlinType