Skip to content

Commit

Permalink
FIX something.
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Nov 28, 2024
1 parent 0d61f88 commit 9a813ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private fun FirTypeParameter.toTypeParameter(): TypeParameter =
data class ValueParameter(val name: Name, val type: ClassId?)

private fun FirValueParameter.toValueParameter(): ValueParameter =
ValueParameter(name, returnTypeRef.coneTypeOrNull?.type?.classId)
ValueParameter(name, returnTypeRef.coneTypeOrNull?.classId)


fun OriginSymbol.checkSame(declaration: IrFunction): Boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ class SuspendTransformTransformer(
private fun IrFunction.reportLocation(): CompilerMessageSourceLocation? {
return when (val sourceLocation =
// getSourceLocation(runCatching { fileEntry }.getOrNull())) {
getSourceLocation(file)) {
getSourceLocation(declaration = symbol, file = file)) {
is SourceLocation.Location -> {
CompilerMessageLocation.create(
path = sourceLocation.file,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import org.jetbrains.kotlin.config.LanguageVersion
import org.jetbrains.kotlin.platform.jvm.JvmPlatforms
import org.jetbrains.kotlin.test.FirParser
import org.jetbrains.kotlin.test.TargetBackend
import org.jetbrains.kotlin.test.backend.ir.JvmIrBackendFacade
import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
import org.jetbrains.kotlin.test.builders.configureFirHandlersStep
import org.jetbrains.kotlin.test.builders.configureJvmArtifactsHandlersStep
Expand Down Expand Up @@ -66,16 +65,16 @@ abstract class AbstractTestRunner : AbstractKotlinCompilerTest() {
FrontendKinds.ClassicFrontend,
::ClassicFrontendFacade,
::ClassicFrontend2IrConverter,
::JvmIrBackendFacade
) { }
// ::JvmIrBackendFacade
) // { }
}
FrontendKinds.FIR -> {
commonConfigurationForTest(
FrontendKinds.FIR,
::FirFrontendFacade,
::Fir2IrResultsConverter,
::JvmIrBackendFacade
) { }
// ::JvmIrBackendFacade
) // { }
}
}

Expand Down

0 comments on commit 9a813ce

Please sign in to comment.