Paul Clapham wrote:At line 5 you declare a type variable named "El". Then at line 9 you declare another type variable, also named "El". Apparently (judging from the error message) those two declarations declare two different type variables which just happen to have the same name.
I'm guessing here, but try
and change line 41 to match that change. Here you aren't declaring a new type variable any more, you are using the existing variable which was declared by the outer class. Give that a try and see if I'm right.
Thanks, Paul; that did the trick; my code is working now.