2020-07-11 16:30:49 +02:00
|
|
|
fn h() int {
|
|
|
|
}
|
|
|
|
|
2021-04-20 10:49:06 +02:00
|
|
|
struct Abc {
|
|
|
|
x int
|
|
|
|
}
|
|
|
|
|
|
|
|
fn (s Abc) panic(message string) {
|
|
|
|
println('called ${@METHOD} with message: $message')
|
|
|
|
}
|
|
|
|
|
|
|
|
fn (s Abc) abc() &int {
|
|
|
|
if true {
|
|
|
|
return &s.x
|
|
|
|
}
|
|
|
|
s.panic(@FN)
|
|
|
|
}
|
|
|
|
|
2020-07-11 16:30:49 +02:00
|
|
|
fn main() {
|
|
|
|
d := h()
|
|
|
|
println('$d')
|
|
|
|
}
|