From 4d76d9bf6cfb62c8d0cec66269337dd88b1fef1f Mon Sep 17 00:00:00 2001 From: Andrew Golovashevich Date: Sat, 10 May 2025 02:12:10 +0300 Subject: [PATCH] Fixed (suppressed) compilation error parametrized type parameters --- .../db/skeleton1/api/DatabaseType.kt | 4 +-- .../skeleton1/api/statement/RawStatement.kt | 32 +++++++++---------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/DatabaseType.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/DatabaseType.kt index aef36ec..c5e7d86 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/DatabaseType.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/DatabaseType.kt @@ -5,8 +5,8 @@ public interface DatabaseType<@Suppress("unused") RUNTIME_TYPE : Any?> { public fun provideStatementImplementations_databaseType(scope: Scope) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( key: DriverType, type: DATABASE_TYPE ) where DATABASE_TYPE_UNBOUND : DatabaseType<*>, DATABASE_TYPE : DatabaseType, diff --git a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt index 8f78de1..48b8caf 100644 --- a/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt +++ b/src/commonMain/kotlin/ru/landgrafhomyak/db/skeleton1/api/statement/RawStatement.kt @@ -14,8 +14,8 @@ public interface RawStatement : _Statement) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, STATEMENT_CONSTRUCTOR_UNBOUND, *, *, *, *, *, *, *>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>, @@ -34,8 +34,8 @@ public interface RawStatement : _Statement) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, *, STATEMENT_CONSTRUCTOR_UNBOUND, *, *, *, *, *, *>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>, @@ -54,8 +54,8 @@ public interface RawStatement : _Statement) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, *, *, STATEMENT_CONSTRUCTOR_UNBOUND, *, *, *, *, *>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>, @@ -75,8 +75,8 @@ public interface RawStatement : _Statement) public interface Selector { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, *, *, *, STATEMENT_CONSTRUCTOR_UNBOUND, *, *, *, *>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>, @@ -95,8 +95,8 @@ public interface RawStatement : _Statement) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, *, *, *, *, STATEMENT_CONSTRUCTOR_UNBOUND, *, *, *>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>, @@ -115,8 +115,8 @@ public interface RawStatement : _Statement) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, *, *, *, *, *, STATEMENT_CONSTRUCTOR_UNBOUND, *, *>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>, @@ -135,8 +135,8 @@ public interface RawStatement : _Statement) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, *, *, *, *, *, *, STATEMENT_CONSTRUCTOR_UNBOUND, *>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>, @@ -155,8 +155,8 @@ public interface RawStatement : _Statement) public interface Scope { - @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER") - public fun bind( + @Suppress("ERROR_SUPPRESSION", "BOUNDS_NOT_ALLOWED_IF_BOUNDED_BY_TYPE_PARAMETER", "INCONSISTENT_TYPE_PARAMETER_BOUNDS") + public fun addImplementation( driverType: DriverType<*, *, *, *, *, *, *, *, STATEMENT_CONSTRUCTOR_UNBOUND>, constructor: STATEMENT_CONSTRUCTOR ) where STATEMENT_CONSTRUCTOR_UNBOUND : Constructor<*>,