score:5

Accepted answer
 public list<int> getnumbers()
 {
  // compile error as int[] and list<int> are different types
  return enumerable.range(0,10)
                   .toarray(); 
 }

 public int[] getnumbers()
 {
  // compile error as int[] and list<int> are different types
  return enumerable.range(0,10)
                   .tolist(); 
 }

Related Query

More Query from same tag