| 1 | module main |
| 2 | |
| 3 | import another_module as aaa |
| 4 | |
| 5 | fn test_import_opt_struct_from_another_module() { |
| 6 | x := ?aaa.SomeStruct{} |
| 7 | assert dump(x == none) == true |
| 8 | } |
| 9 | |
| 10 | fn test(a ?aaa.SomeStruct) ?aaa.SomeStruct { |
| 11 | return none |
| 12 | } |
| 13 | |
| 14 | fn test_fn_decl_with_struct_from_another_module() { |
| 15 | x := test(?aaa.SomeStruct(none)) |
| 16 | assert dump(x == none) == true |
| 17 | } |
| 18 |