diff options
Diffstat (limited to 'plugins/kotlin/idea/tests/testData/highlighter/DefinitelyNonNullableType.kt')
-rw-r--r-- | plugins/kotlin/idea/tests/testData/highlighter/DefinitelyNonNullableType.kt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/kotlin/idea/tests/testData/highlighter/DefinitelyNonNullableType.kt b/plugins/kotlin/idea/tests/testData/highlighter/DefinitelyNonNullableType.kt new file mode 100644 index 000000000000..14be7659e9ee --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/highlighter/DefinitelyNonNullableType.kt @@ -0,0 +1,6 @@ +// LANGUAGE_VERSION: 1.8 + +fun <<info textAttributesKey="KOTLIN_TYPE_PARAMETER">T</info>> <info textAttributesKey="KOTLIN_FUNCTION_DECLARATION">foo</info>(<info textAttributesKey="KOTLIN_PARAMETER">x</info>: <info textAttributesKey="KOTLIN_TYPE_PARAMETER">T & Any</info>) : <info textAttributesKey="KOTLIN_TYPE_PARAMETER">T & Any</info> { + val <info textAttributesKey="KOTLIN_LOCAL_VARIABLE">y</info>: <info textAttributesKey="KOTLIN_TYPE_PARAMETER">T & Any</info> = <info textAttributesKey="KOTLIN_PARAMETER">x</info> + return <info textAttributesKey="KOTLIN_LOCAL_VARIABLE">y</info> +} |