Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e196bc3012 | ||
|
|
7b1ba71ef0 |
No files matched your search
@@ -0,0 +1,9 @@
|
|||||||
|
This is a branch with a kotlin compiler bug problem
|
||||||
|
|
||||||
|
The problem is: the code built for wasmJS target does not load (tests does not load),
|
||||||
|
the runtime error shows incorrect wasm binary content; $80 AI attempt to investigate
|
||||||
|
it results that most probable source of the bug is bad compilation of the _anonymous suspending lambda expressions_.
|
||||||
|
|
||||||
|
Sorry to say it is one of most used constructions in the Lyng compiler.
|
||||||
|
|
||||||
|
So we have to suspend wasmJS development.
|
||||||
@@ -887,7 +887,7 @@ class OOTest {
|
|||||||
""".trimIndent())
|
""".trimIndent())
|
||||||
}
|
}
|
||||||
@Test
|
@Test
|
||||||
fun testToJsonString() = runTest {
|
fun testToStringWithTransient() = runTest {
|
||||||
eval("""
|
eval("""
|
||||||
class C(amount,@Transient transient=0) {
|
class C(amount,@Transient transient=0) {
|
||||||
val l by lazy { transient + amount }
|
val l by lazy { transient + amount }
|
||||||
@@ -903,4 +903,12 @@ class OOTest {
|
|||||||
println(C(1).lock().lock().amount)
|
println(C(1).lock().lock().amount)
|
||||||
""".trimIndent())
|
""".trimIndent())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun testToJsonString() = runTest {
|
||||||
|
eval("""
|
||||||
|
class T(a,b,@Transient c=0)
|
||||||
|
assertEquals("{\"a\":\"foo\",\"b\":\"bar\"}",T("foo", "bar").toJsonString())
|
||||||
|
""".trimIndent())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user