Files
revanced-patcher/src/test/kotlin/app/revanced/patcher/issues/Issue98.kt
2022-09-08 16:49:06 +02:00

18 lines
410 B
Kotlin

package app.revanced.patcher.issues
import app.revanced.patcher.patch.PatchOption
import org.junit.jupiter.api.Test
import kotlin.test.assertNull
internal class Issue98 {
companion object {
var key1: String? by PatchOption.StringOption(
"key1", null, "title", "description"
)
}
@Test
fun `should infer nullable type correctly`() {
assertNull(key1)
}
}