Initial work for functions as values. Actually works, but you can't write out the type and thus can only declare function pointer variables with type inference.
This commit is contained in:
1 parent
65fd2ed9b7
commit
911b25f78b
8 files changed
+172
-111
No files matched your search
@@ -0,0 +1 @@
|
||||
9
|
||||
@@ -0,0 +1,13 @@
|
||||
import io:*
|
||||
|
||||
fun test(): void {
|
||||
println(9)
|
||||
}
|
||||
|
||||
fun main(): int {
|
||||
var val = test
|
||||
val()
|
||||
return 0
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user