Allowed function parameter without type declaration in the parser
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNUSED_VARIABLE
|
||||
|
||||
fun test(a<!SYNTAX!><!>) {
|
||||
fun test(<!VALUE_PARAMETER_WITH_NO_TYPE_ANNOTATION!>a<!>) {
|
||||
|
||||
}
|
||||
|
||||
class A(a<!SYNTAX!><!>)
|
||||
|
||||
val bar = fun test(a<!SYNTAX!><!>){}
|
||||
val bar = fun test(<!CANNOT_INFER_PARAMETER_TYPE!>a<!>){}
|
||||
|
||||
val la = { (<!CANNOT_INFER_PARAMETER_TYPE!>a<!>) -> }
|
||||
val las = { (a: Int) -> }
|
||||
Reference in New Issue
Block a user