| 1 | module main |
| 2 | |
| 3 | pub struct Tree {} |
| 4 | |
| 5 | pub fn (tree &Tree) str() string { |
| 6 | return '' |
| 7 | } |
| 8 | |
| 9 | pub struct TreeTwo { |
| 10 | Tree |
| 11 | } |
| 12 | |
| 13 | pub fn TreeTwo.from_string(tree_string string) !&TreeTwo { |
| 14 | return &TreeTwo{} |
| 15 | } |
| 16 | |
| 17 | fn main() { |
| 18 | tree := TreeTwo.from_string('') or { panic(err) } |
| 19 | println(tree.str()) |
| 20 | } |
| 21 |