Skip to content

Commit fc15a64

Browse files
committed
Update Kotlin version and remove TODO about compiler bug (seems to be fixed in 2.1.0)
1 parent d9d6043 commit fc15a64

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[versions]
22
arrow = "2.0.0-alpha.1"
33
kotest = "5.8.1"
4-
kotlin = "2.0.0"
4+
kotlin = "2.1.0"
55
kotlinxCoroutinesCore = "1.8.0"
66
nexus-publish = "2.0.0-rc-1"
77
turbine = "1.1.0"

library/src/commonTest/kotlin/effekt/casestudies/NaturalisticDsl.kt

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ suspend fun Quantification.every(who: Predicate) = quantify(who)
7171

7272
suspend fun s2() = scoped { John said { every(Woman) loves me() } }
7373

74-
//TODO: weird compiler bug. Removing suspend here still compiles s2, but ends up with null continuation
7574
suspend fun scoped(s: suspend Quantification.() -> Sentence): Sentence {
7675
data class Data(var i: Int)
7776
return handleStateful(Data(0), Data::copy) {

library/src/commonTest/kotlin/utils.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ inline fun runTestCC(
1919
}
2020

2121
inline fun <Error, R> HandlerPrompt<R>.Raise(crossinline transform: (Error) -> R): Raise<Error> = object : Raise<Error> {
22-
override fun raise(error: Error): Nothing = discard { transform(error) }
22+
override fun raise(r: Error): Nothing = discard { transform(r) }
2323
}

0 commit comments

Comments
 (0)