1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: simplify generic structs (#10167)

This commit is contained in:
yuyi
2021-05-23 10:54:58 +08:00
committed by GitHub
parent 79b97fa361
commit ae9f8627fc
3 changed files with 45 additions and 88 deletions

View File

@ -55,10 +55,9 @@ pub fn panic(s string) {
exit(1)
}
struct Option<T> {
struct Option {
state byte
err Error
data T
}
pub struct Error {