OF3H5VU2V3YWNALAFGB5AVZBDCKDBSU5VJUGTOCCCKTQ3ZJVIWYQC
PRXMFCPN42S7EXICLW5IRTWY35CJOQNYPHW3HCYTQOXW2LRXSPNAC
XWWV4P2IPTN6D6TMT6BDAYH5YP4G4WSHINDW73BMAQCUXKSONGSQC
W4S5ZVBQG3G3MCXNCKZFHAQX7XH3UW6WTKVXN2XGRFG5EJ7JPLNQC
MMSDEJK2BQO6CF6JG3OBDSKMQPIVWWM7BMZH6HIBDHVAVZ5JDAEQC
6L2PHVBOCBBAYDUP4WX2DUEOPDHE5SP5M3MUORP5DNO63CJZULXAC
S4P2B3FPF57HPHTIAYGMPCVKB7573IB5ZBKNXVBTB6ICCPF55WNQC
FMITFZMDZ5E5DL7RX5KPFGWFQUUTEDHR36UYB6IVELFL6G7P2QYQC
AETEUT6ER7MJXNYTBH5RHUT5URSRWNBJPXU2CA4URLSNAZYMWPIAC
B5EQK6YSRS2YL3C4MXWCOUDYDEOB46LXAZNRCSXC7STIME7W6JQAC
NXK73CXTYPQQKHXAC7W7HMNQG5HP5KTUBF4LW2XQXJMW6PQVA2HAC
OIJSQWEJJQLQAPSUC5562ZGIS5EABVE6CSWLBOQYKGC7PYEZQQMAC
O774NWA2NLE34RNFCQAYXU2QVRVTPVW6O7KWXOUTCS35CX4EY4HQC
2H4IGAQB6WSGLKH2X2RNR4GK5CUDZ6NDRWXX2OYIYE64BLKV7QXQC
module util
struct Thing {
name StringOrNone
}
fn test_string_or_none_string() {
thing := Thing{
name: StringOrNone('bob')
}
println(thing)
assert thing.name is string
}
fn test_string_or_none_none() {
thing := Thing{
name: StringOrNone(None{})
}
println(thing)
assert thing.name is None
}
module util
type StringOrNone = None | string
pub struct None {}