mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
checker: simplify generic structs (#10167)
This commit is contained in:
parent
79b97fa361
commit
ae9f8627fc
3 changed files with 45 additions and 88 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue