Store file-level annotations in IrFile (should be on some descriptor, really).

This commit is contained in:
Dmitry Petrov
2016-09-07 14:25:17 +03:00
committed by Dmitry Petrov
parent e23325b014
commit 4e270ef487
6 changed files with 53 additions and 2 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
@file:JvmName("FileWithAnnotations")
fun foo() {}
val bar = 42
@@ -0,0 +1,8 @@
FILE /fileWithAnnotations.kt
fileAnnotations:
@kotlin.jvm.JvmName(name = "FileWithAnnotations")
FUN public fun foo(): kotlin.Unit
BLOCK_BODY
PROPERTY public val bar: kotlin.Int = 42
EXPRESSION_BODY
CONST Int type=kotlin.Int value='42'