Test refactoring

This commit is contained in:
Mikhail Glukhikh
2015-04-13 14:58:28 +03:00
parent 8184bccda1
commit 1544755838
35 changed files with 111 additions and 111 deletions
@@ -0,0 +1,13 @@
data class StringPair(val first: String, val second: String)
fun String.to(second: String) = StringPair(this, second)
fun hashMapOf(<!UNUSED_PARAMETER!>pair<!>: StringPair): MutableMap<String, String> {
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
fun F() : MutableMap<String, String> {
val value: String? = "xyz"
if (value == null) throw Error()
// Smart cast should be here
return hashMapOf("sss" to <!DEBUG_INFO_SMARTCAST!>value<!>)
}