another attempt to fix plugin spellchecker

This commit is contained in:
sergeych committed 2026-01-12 16:05:46 +01:00
1 parent d2632cb99e
commit 017111827d
6 files changed
+83 -103

No files matched your search

@@ -4796,5 +4796,20 @@ class ScriptTest {
assertEquals("r:r", T().l("r"))
""".trimIndent())
}
@Test
fun testTypedArgsWithInitializers() = runTest {
eval("""
fun f(a: String = "foo") = a + "!"
fun g(a: String? = null) = a ?: "!!"
assertEquals(f(), "foo!")
assertEquals(f(), "!!")
assertEquals(f("bar"), "bar!")
class T(b: Int=42,c: String?=null)
assertEquals(42, T().b)
assertEquals(null, T().c)
""".trimIndent())
}
}