diff options
Diffstat (limited to 'test/data/functions')
-rw-r--r-- | test/data/functions/annotatedFunction.kt | 2 | ||||
-rw-r--r-- | test/data/functions/functionWithAnnotatedParam.kt | 7 | ||||
-rw-r--r-- | test/data/functions/functionWithNoinlineParam.kt | 2 | ||||
-rw-r--r-- | test/data/functions/functionWithNotDocumentedAnnotation.kt | 2 | ||||
-rw-r--r-- | test/data/functions/inlineFunction.kt | 2 |
5 files changed, 13 insertions, 2 deletions
diff --git a/test/data/functions/annotatedFunction.kt b/test/data/functions/annotatedFunction.kt index 11c19672..f7abbf6c 100644 --- a/test/data/functions/annotatedFunction.kt +++ b/test/data/functions/annotatedFunction.kt @@ -1,2 +1,2 @@ -inline fun f() { +@Strictfp fun f() { } diff --git a/test/data/functions/functionWithAnnotatedParam.kt b/test/data/functions/functionWithAnnotatedParam.kt index 640bec83..f858e671 100644 --- a/test/data/functions/functionWithAnnotatedParam.kt +++ b/test/data/functions/functionWithAnnotatedParam.kt @@ -1,2 +1,7 @@ -fun function(noinline notInlined: () -> Unit) { +@Target(AnnotationTarget.VALUE_PARAMETER) +@Retention(AnnotationRetention.SOURCE) +@MustBeDocumented +public annotation class Fancy + +fun function(@Fancy notInlined: () -> Unit) { } diff --git a/test/data/functions/functionWithNoinlineParam.kt b/test/data/functions/functionWithNoinlineParam.kt new file mode 100644 index 00000000..640bec83 --- /dev/null +++ b/test/data/functions/functionWithNoinlineParam.kt @@ -0,0 +1,2 @@ +fun function(noinline notInlined: () -> Unit) { +} diff --git a/test/data/functions/functionWithNotDocumentedAnnotation.kt b/test/data/functions/functionWithNotDocumentedAnnotation.kt new file mode 100644 index 00000000..3c7e2ff9 --- /dev/null +++ b/test/data/functions/functionWithNotDocumentedAnnotation.kt @@ -0,0 +1,2 @@ +@Suppress("FOO") fun f() { +} diff --git a/test/data/functions/inlineFunction.kt b/test/data/functions/inlineFunction.kt new file mode 100644 index 00000000..11c19672 --- /dev/null +++ b/test/data/functions/inlineFunction.kt @@ -0,0 +1,2 @@ +inline fun f() { +} |