
This is basically just a golden test for the "switch" style of func lowering. The next commit will make changes to this lowering, which will be visible in the test output.
12 строки
115 Б
Go
12 строки
115 Б
Go
package main
|
|
|
|
func foo(callback func(int)) {
|
|
callback(3)
|
|
}
|
|
|
|
func bar() {
|
|
foo(someFunc)
|
|
}
|
|
|
|
func someFunc(int) {
|
|
}
|