aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format/codeBlock.kt
diff options
context:
space:
mode:
Diffstat (limited to 'core/testdata/format/codeBlock.kt')
-rw-r--r--core/testdata/format/codeBlock.kt13
1 files changed, 13 insertions, 0 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