Added the concept of subtypes ...

... which `try` now uses to avoid some problems with inner types
This commit is contained in:
Mark
2023-10-24 09:31:49 +02:00
parent ea95a16c30
commit 5e20f92849
13 changed files with 111 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ impl Config {
}
let arg_type = &t.0[0];
let functions = &t.0[1];
for arg_type in arg_type.types.iter() {
for arg_type in arg_type.subtypes_type().types.iter() {
let arg_type = Type::newm(vec![arg_type.clone()]);
// possibilities for the tuple (f1, f2, f3, ..., fn)
for ft in functions.types.iter() {