[IR] Don't print flags in declaration references in irText tests

This doesn't reduce the quality of tests, because the flags are still
printed for declarations themselves. We only omit them in references.

However, this makes the tests more compatible with non-JVM backends
(see KT-58605), because flags of referenced stdlib declarations may
differ among target platforms.
This commit is contained in:
Sergej Jaskiewicz
2023-05-15 19:44:19 +02:00
committed by Space Team
parent b8e868caf6
commit fd76a34277
837 changed files with 11643 additions and 11646 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ FILE fqName:<root> fileName:/references.kt
VAR name:x type:kotlin.String [val]
CONST String type=kotlin.String value="OK"
RETURN type=kotlin.Nothing from='public final fun test3 (): kotlin.String declared in <root>'
GET_VAR 'val x: kotlin.String [val] declared in <root>.test3' type=kotlin.String origin=null
GET_VAR 'val x: kotlin.String declared in <root>.test3' type=kotlin.String origin=null
FUN name:test4 visibility:public modality:FINAL <> () returnType:kotlin.String
BLOCK_BODY
RETURN type=kotlin.Nothing from='public final fun test4 (): kotlin.String declared in <root>'