<commit_before>package org.jetbrains.plugins.scala.failed.typeInference

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

/**
  * @author anton.yalyshev
  * @since 14.04.16.
  */
@Category(Array(classOf[PerfCycleTests]))
class ApplyConfomanceTest extends ScalaLightCodeInsightFixtureTestAdapter {
  def testSCL5660(): Unit = {
    checkTextHasNoErrors(
      s"""
         |class Test {
         |  var test: Option[String] = None
         |  def test_=(test: String) { this.test = Some(test) }
         |}
         |
         |(new Test).test = "test"
         |/* True */
      """.stripMargin)
  }
}<commit_msg>added test for SCL-12708<commit_after>package org.jetbrains.plugins.scala.failed.typeInference

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

/**
  * @author anton.yalyshev
  * @since 14.04.16.
  */
@Category(Array(classOf[PerfCycleTests]))
class ApplyConfomanceTest extends ScalaLightCodeInsightFixtureTestAdapter {
  def testSCL5660(): Unit = {
    checkTextHasNoErrors(
      s"""
         |class Test {
         |  var test: Option[String] = None
         |  def test_=(test: String) { this.test = Some(test) }
         |}
         |
         |(new Test).test = "test"
         |/* True */
      """.stripMargin)
  }

  def testSCL12708(): Unit = {
    checkTextHasNoErrors(
      s"""
         |trait T
         |case object V extends T
         |
         |case class Clz(exprs: T*)
         |
         |def create[P](args: Seq[T], creator: (T*) => Clz) = {
         |  creator(args :_*)
         |}
         |
         |create[Clz](Seq(V,  V, V), Clz.apply)
      """.stripMargin)
  }
}
{'fraction_non_alphanumeric': 0.12966915688367128, 'fraction_numerical': 0.016008537886873, 'mean_word_length': 2.605769230769231, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6894357', 'n_tokens_mistral': 650, 'n_tokens_neox': 617, 'n_words': 107}