# Calling non generic method that has a generic overload

**URL:** <https://www.ruby-forum.com/t/calling-non-generic-method-that-has-a-generic-overload/172948>\
**Category:** IronRuby\
**Created:** [July 30, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/calling-non-generic-method-that-has-a-generic-overload/172948 "2009-07-30T13:25:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdeering](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/278dde/32.png) [@mdeering](https://www.ruby-forum.com/u/mdeering)\
**Post date:** [July 30, 2009, 1:25pm UTC](https://www.ruby-forum.com/t/calling-non-generic-method-that-has-a-generic-overload/172948/1 "2009-07-30T13:25:28Z")

</div>

hi guys,  
i’m trying to using IR with NHibernate so i can a nice REPL experience.

the issue i’m having is that I’m calling a method List() on the class  
ISQLQuery, which returns an IList, but ISQLQuery also has a generic  
overload List().

> > > sql = “some sql… etc”  
> > > query = qm.Session.CreateSQLQuery(sql)  
> > > list = query.list  
> > > :0: generic arguments could not be infered for method ‘list’  
> > > (ArgumentError)

i did a print of all the methods on the query class and it has a single  
‘list’ method.

i’m on edge ironruby, refreshed just 1 hour ago.

any ideas?
