Auto inferenced void return!
This commit is contained in:
16
tests/test_auto_void.krak
Normal file
16
tests/test_auto_void.krak
Normal file
@@ -0,0 +1,16 @@
|
||||
import io:*
|
||||
|
||||
fun retVoid() {
|
||||
println("Woooo")
|
||||
}
|
||||
|
||||
fun withParams(a:int, b:char*) {
|
||||
println(a)
|
||||
println(b)
|
||||
}
|
||||
|
||||
fun main():int {
|
||||
retVoid()
|
||||
withParams(7, "uh huh")
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user