diff options
Diffstat (limited to 'core/testdata')
-rw-r--r-- | core/testdata/format/codeBlock.kt | 13 | ||||
-rw-r--r-- | core/testdata/format/codeBlock.md | 31 | ||||
-rw-r--r-- | core/testdata/format/javadocHtml.md | 2 |
3 files changed, 45 insertions, 1 deletions
diff --git a/core/testdata/format/codeBlock.kt b/core/testdata/format/codeBlock.kt new file mode 100644 index 00000000..e3fa27d2 --- /dev/null +++ b/core/testdata/format/codeBlock.kt @@ -0,0 +1,13 @@ +import kotlin.reflect.KClass + +/** + * This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. + * + * Example: + * + * ``` + * Throws(IOException::class) + * fun readFile(name: String): String {...} + * ``` + */ +class Throws diff --git a/core/testdata/format/codeBlock.md b/core/testdata/format/codeBlock.md new file mode 100644 index 00000000..08710390 --- /dev/null +++ b/core/testdata/format/codeBlock.md @@ -0,0 +1,31 @@ +[test](test/index) / [Throws](test/-throws/index) + + +# Throws + +`class Throws` + +This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. + + +Example: + + +``` +Throws(IOException::class) +fun readFile(name: String): String {...} +``` + + + + + + +### Constructors + + +| [<init>](test/-throws/-init-) | `Throws()` +This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. + + | + diff --git a/core/testdata/format/javadocHtml.md b/core/testdata/format/javadocHtml.md index db71cc3b..3e92441b 100644 --- a/core/testdata/format/javadocHtml.md +++ b/core/testdata/format/javadocHtml.md @@ -9,7 +9,7 @@ Paragraph ~~Strikethrough~~ ~~Deleted~~ `Code` -``` +``` Block code ``` |