Codebase list ohcount / run/8fccc97f-1091-4606-8a80-1b8fb386766a/main test / src_dir / kotlin.kt
run/8fccc97f-1091-4606-8a80-1b8fb386766a/main

Tree @run/8fccc97f-1091-4606-8a80-1b8fb386766a/main (Download .tar.gz)

kotlin.kt @run/8fccc97f-1091-4606-8a80-1b8fb386766a/mainraw · history · blame

// Line comment
fun sum(a : Double, b : Double) : Double { 
  return a + b 
}

/*
 * Block comment
 */

fun hello(place : String) : Unit {
    print("Hello, \"$place\"\n")
}

/*
 * /*
 *  * Block comments nest
 *  */
 */

fun main() : Unit {
    hello("""Very, very, very
             // long place
             somewhere""")
}