[NI] Add test for obsolete issue

It was fixed after c6712ff861

 #KT-25182 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2018-11-23 14:23:51 +03:00
parent 30aee3bfb6
commit 7b108541a9
4 changed files with 44 additions and 0 deletions
@@ -0,0 +1,14 @@
// !LANGUAGE: +NewInference
// !DIAGNOSTICS: -UNUSED_PARAMETER
abstract class Expr<T>
class Sum<K>(val e: Expr<K>) : Expr<K?>()
private fun <V> times(e: Expr<V>, element: V): Expr<V> = TODO()
private fun <S> foo(e: Expr<S>) {}
fun test(intExpression: Expr<Int>) {
foo(Sum(times(intExpression, 42)))
}