<commit_before>package org.jetbrains.plugins.scala.lang.psi.impl.expr

import types.{ScFunctionType, Nothing}
import psi.ScalaPsiElementImpl
import com.intellij.lang.ASTNode
import api.expr._

/** 
* @author <NAME>
* Date: 06.03.2008
*/

class ScMethodCallImpl(node: ASTNode) extends ScalaPsiElementImpl(node) with ScMethodCall {
  override def toString: String = "MethodCall"
  override def getType = getInvokedExpr.getType match {
    case ScFunctionType(r, _) => r
    case _ => Nothing
  }
}<commit_msg>fix type for List(1,2)<commit_after>package org.jetbrains.plugins.scala.lang.psi.impl.expr

import types.ScFunctionType
import psi.ScalaPsiElementImpl
import com.intellij.lang.ASTNode
import api.expr._

/** 
* @author <NAME>
* Date: 06.03.2008
*/

class ScMethodCallImpl(node: ASTNode) extends ScalaPsiElementImpl(node) with ScMethodCall {
  override def toString: String = "MethodCall"
  override def getType = getInvokedExpr.getType match {
    case ScFunctionType(r, _) => r
    case t => t
  }
}
{'fraction_non_alphanumeric': 0.10934393638170974, 'fraction_numerical': 0.017892644135188866, 'mean_word_length': 4.6892655367231635, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5028729', 'n_tokens_mistral': 353, 'n_tokens_neox': 336, 'n_words': 77}