mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2026-01-31 23:21:03 +00:00
18 lines
410 B
Kotlin
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)
|
|
}
|
|
} |