Any와 Nothing 클래스

베이스 클래스 Any

Nothing은 void보다 강력하다.

fun computeSqurt(n: Double): Doble {
	if(n >= 0) {
		return Math.sqrt(n)
	} else {
		throw RuntimeException("No negativve please")
	}
}