Java declaration annotations are treated as type annotations

This is needed, for example, to approximate flexible types correctly when rendering them in the code
This commit is contained in:
Andrey Breslav
2014-09-17 14:25:00 +04:00
parent bd21e487fc
commit 91b0b83ec3
33 changed files with 119 additions and 64 deletions
@@ -2,5 +2,5 @@ package test
public open class NotNullField {
public constructor NotNullField()
public final var hi: kotlin.String!
org.jetbrains.annotations.NotNull() public final var hi: kotlin.String!
}
@@ -2,5 +2,5 @@ package test
public open class NotNullIntArray {
public constructor NotNullIntArray()
public open fun hi(): kotlin.IntArray!
org.jetbrains.annotations.NotNull() public open fun hi(): kotlin.IntArray!
}
@@ -2,5 +2,5 @@ package test
public open class NotNullMethod {
public constructor NotNullMethod()
public open fun hi(): kotlin.String!
org.jetbrains.annotations.NotNull() public open fun hi(): kotlin.String!
}
@@ -2,5 +2,5 @@ package test
public open class NotNullObjectArray {
public constructor NotNullObjectArray()
public open fun hi(): kotlin.Array<(out) kotlin.Any!>!
org.jetbrains.annotations.NotNull() public open fun hi(): kotlin.Array<(out) kotlin.Any!>!
}
@@ -2,5 +2,5 @@ package test
public open class NotNullParameter {
public constructor NotNullParameter()
public open fun hi(/*0*/ p0: kotlin.String!): kotlin.Unit
public open fun hi(/*0*/ org.jetbrains.annotations.NotNull() p0: kotlin.String!): kotlin.Unit
}