KT-1860 Resolve annotations of function parameters

#KT-1860 Fixed
This commit is contained in:
Andrey Breslav
2012-04-24 21:53:23 +04:00
parent 81387c0745
commit c686184847
4 changed files with 26 additions and 5 deletions
@@ -0,0 +1,9 @@
fun foo(<!UNRESOLVED_REFERENCE!>varargs<!> <!UNUSED_PARAMETER!>f<!> : Int) {}
var bar : Int = 1
set(<!UNRESOLVED_REFERENCE!>varargs<!> v) {}
val x : (Int) -> Int = {([<!UNRESOLVED_REFERENCE!>varargs<!>] x : Int) -> x}
class Hello(<!UNRESOLVED_REFERENCE!>varargs<!> args: Any) {
}
@@ -0,0 +1,11 @@
annotation class test {}
fun foo(test <!UNUSED_PARAMETER!>f<!> : Int) {}
var bar : Int = 1
set(test v) {}
val x : (Int) -> Int = {([test] x : Int) -> x}
class Hello(test args: Any) {
}