Closed consolethinks closed 6 years ago
Le type de curr_bindings
est incorrect, car PredicateTransition.fireableBingings(from:)
retourne un tableau de bindings. Le type correct est [PredicateTransition<T>.Binding]
(aka [[Variable: T]
).
Il conviendra ensuite d'itérer sur ce tableau de bindings pour identifier les successeurs obtenus par le tir de la transition.
J'ai une probleme de conversion des types quand j'essaie d'appeler la fonction fireableBingings (c'est le nom definit dans PredicateNet au lieu de fireableBindings):
Comme c'est la premiere fois que j'utilise des "Generics", c'est probablement la raison pourquoi je n'arrive pas corriger les erreurs.
L'erreur donne par le compilateur (il y a des autres erreurs de meme type):