Fixed annotation resolve for loop parameter or catched exceptions type

This commit is contained in:
Mikhail Glukhikh
2015-06-09 16:14:00 +03:00
parent 731e5d85a4
commit f9fe8cd341
7 changed files with 61 additions and 9 deletions
@@ -0,0 +1,7 @@
annotation class My
fun foo() {
for (i: @My Int in 0..41) {
if (i == 13) return
}
}
@@ -0,0 +1,10 @@
package
internal fun foo(): kotlin.Unit
internal final annotation class My : kotlin.Annotation {
public constructor My()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
@@ -0,0 +1,9 @@
annotation class My
fun foo(arg: Int): Int {
try {
return 1 / (arg - arg)
} catch (e: @My Exception) {
return -1
}
}
@@ -0,0 +1,10 @@
package
internal fun foo(/*0*/ arg: kotlin.Int): kotlin.Int
internal final annotation class My : kotlin.Annotation {
public constructor My()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}