[mcbind] [PATCH 2/4] Add `Einit where necessary to complete matchings
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: [mcbind] [PATCH 2/4] Add `Einit where necessary to complete matchings
- From: "S. Gilles" <sgilles@xxxxxxx>
- Reply-to: myrddin-dev@xxxxxxxxxxxxxx
- Date: Tue, 10 Mar 2020 11:47:49 -0400
- To: "myrddin-dev" <myrddin-dev@xxxxxxxxxxxxxx>
- Cc: "S. Gilles" <sgilles@xxxxxxx>
---
I'm not actually sure that returning Tyvoid is correct here. I think
it's been a while since I intentionally invoked "force a correct patch
by submitting a broken one", so perhaps I may be forgiven.
ast.myr | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ast.myr b/ast.myr
index 0b9c3cc..245f84d 100644
--- a/ast.myr
+++ b/ast.myr
@@ -301,6 +301,7 @@ const exprtype = {e
| &(`Ecall call): -> call.functy.rty
| &(`Eincdec incdec): -> exprtype(incdec.expr)
| &(`Esizeof _): -> `Tyint
+ | &(`Einit _): -> `Tyvoid
;;
}
@@ -326,6 +327,7 @@ const exprloc = {e
| &(`Ecall _):
| &(`Eincdec _):
| &(`Esizeof _):
+ | &(`Einit _):
;;
-> [.file=[][:], .line=0, .col=0 ]
}
--
2.25.1
| [mcbind] [PATCH 0/4] Misc mcbind adjustments | "S. Gilles" <sgilles@xxxxxxx> |
- Prev by Date: [mcbind] [PATCH 1/4] Allow enum values to be previous members of same enum.
- Previous by thread: [mcbind] [PATCH 1/4] Allow enum values to be previous members of same enum.
- Index(es):