We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00461d2 commit e9755c4Copy full SHA for e9755c4
src/test/kotlin/com/fasterxml/jackson/module/kotlin/test/failing/Github270.kt
@@ -0,0 +1,19 @@
1
+package com.fasterxml.jackson.module.kotlin.test.failing
2
+
3
+import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
4
+import org.junit.Test
5
+import kotlin.test.assertEquals
6
7
+class TestGithub270 {
8
+ data class Wrapper(private val field: String) {
9
+ val upper = field.toUpperCase()
10
+ fun field() = field
11
+ fun stillAField() = field
12
+ }
13
14
+ @Test
15
+ fun testPublicFieldOverlappingFunction() {
16
+ val json = jacksonObjectMapper().writeValueAsString(Wrapper("Hello"))
17
+ assertEquals("""{"upper":"HELLO"}""", json)
18
19
+}
0 commit comments