Codebase list ohcount / 3c3c2f4 test / src_dir / kotlin.kt
3c3c2f4

Tree @3c3c2f4 (Download .tar.gz)

kotlin.kt @3c3c2f4raw · 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""")
}