summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 12:07:15 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2026-01-22 12:07:15 +0100
commit8375f459638f942d51948d466d9365eaa0c2a500 (patch)
tree0bf55baf94554d0e9a79c6342844696faf55342e /tests
parenta4b604c0f7ea0927d40274e6ae15fa710b68aa3e (diff)
downloadcrep-8375f459638f942d51948d466d9365eaa0c2a500.tar.gz
Add Kotlin grammar
Diffstat (limited to 'tests')
-rw-r--r--tests/test.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test.kt b/tests/test.kt
new file mode 100644
index 0000000..7f50ab9
--- /dev/null
+++ b/tests/test.kt
@@ -0,0 +1,17 @@
+fun hello() {
+ println("Hello, World!")
+}
+
+fun add(a: Int, b: Int): Int {
+ return a + b
+}
+
+class MyClass {
+ fun myMethod() {
+ println("Method")
+ }
+}
+
+fun String.extensionFunc() {
+ println(this)
+}