<commit_before><commit_msg>add test for #SCL-7222<commit_after>package org.jetbrains.plugins.scala.failed.resolve

import org.jetbrains.plugins.scala.PerfCycleTests
import org.jetbrains.plugins.scala.base.ScalaLightCodeInsightFixtureTestAdapter
import org.jetbrains.plugins.scala.lang.resolve.SimpleResolveTestBase
import org.junit.experimental.categories.Category

/**
  * @author mucianm 
  * @since 07.04.16.
  */
@Category(Array(classOf[PerfCycleTests]))
class OverloadedErasureExpectedTypeTest extends ScalaLightCodeInsightFixtureTestAdapter with SimpleResolveTestBase {
  import SimpleResolveTestBase._

  def testSCL7222(): Unit ={
    doResolveTest(
      s"""
        |trait Test {
        |  class Foo
        |  class Bar
        |  implicit object I1
        |  implicit object I2
        |  def bar(foo: Foo): Bar
        |  def ${REFTGT}foo(f: Foo => Bar)(implicit i1: I1.type)
        |  def foo(f: Foo => (Foo => Bar))(implicit i2: I2.type)
        |
        |  ${REFSRC}foo(f => bar(f))
        |}
      """.stripMargin)
  }

}
{'fraction_non_alphanumeric': 0.11494252873563218, 'fraction_numerical': 0.019157088122605363, 'mean_word_length': 3.1967871485943773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '834631', 'n_tokens_mistral': 366, 'n_tokens_neox': 346, 'n_words': 63}