Files
kotlin-fork/kotlin-native/backend.native/tests/objcexport/kdocExport.kt
T
Vladimir Ivanov b87a943efd [Native] Add test for -Xexport-kdoc (#4249)
(*) Fix exported kdoc indentation and extra blank lines
2021-04-02 12:10:09 +03:00

45 lines
1.1 KiB
Kotlin

/*
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kdocExport
/**
* Summary class [KDocExport].
*
* @property xyzzy Doc for property xyzzy
* @property zzz See below.
*/
// Expected: this comment shall not affect KDoc (i.e. kdoc above is still OK)
class KDocExport() {
/**
* @param xyzzy is documented.
*
* This is multi-line KDoc. See a blank line above.
*/
val xyzzy: String = "String example"
/** Non-primary ctor KDoc: */
constructor(name: String) : this() {
println(name)
}
/** @property xyzzy KDoc for foo? */
val foo = "foo"
/** @property foo KDoc for yxxyz? */
var yxxyz = 0;
}
/**
* Useless function [whatever]
*
* This kdoc has some additional formatting.
* @param a keep intact and return
* @return value of [a]
* Check for additional comment (note) below
*/
@Throws(IllegalArgumentException::class)
fun whatever(a:String) = a