Fix incorrect usage of mapReturnType in param assertions

This commit is contained in:
Alexander Udalov
2013-12-26 18:50:41 +04:00
parent 2553cd1907
commit d8c5b0236d
3 changed files with 15 additions and 9 deletions
@@ -1,8 +1,14 @@
import test.doGenerateParamAssertions as C
class A : C() {
override fun bar(s: String) {
}
class TestString : C<String>() {
override fun doTest(s: String) { }
}
fun doTest() = C.foo(A())
class TestUnit : C<Unit>() {
override fun doTest(s: Unit) { }
}
fun doTest() {
C.runTest(TestString())
C.runTest(TestUnit())
}