[FIR] Render nullability in type renderer, not in fir renderer

This commit is contained in:
Dmitriy Novozhilov
2019-07-29 11:47:20 +03:00
parent 3e44bc805f
commit e6bf3b3263
220 changed files with 441 additions and 418 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
FILE: main.kt
public final class WithElvis : R|kotlin/Any| {
public constructor(value: R|kotlin/String|?): R|elvis/WithElvis| {
public constructor(value: R|kotlin/String?|): R|elvis/WithElvis| {
super<R|kotlin/Any|>()
}
public final val value: R|kotlin/String|? = R|<local>/value|
public get(): R|kotlin/String|?
public final val value: R|kotlin/String?| = R|<local>/value|
public get(): R|kotlin/String?|
public final fun foo(): R|kotlin/String| {
^foo when (lval <elvis>: R|kotlin/String|? = R|elvis/WithElvis.value|) {
^foo when (lval <elvis>: R|kotlin/String?| = R|elvis/WithElvis.value|) {
==($subj$, Null(null)) -> {
String()
}