Fix tests: "infix modifier required" and "operator modifier required" errors

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:56 +03:00
parent a3ff3ffc45
commit 9d1af5a17e
635 changed files with 1283 additions and 1617 deletions
@@ -13,7 +13,7 @@ abstract class Tag(val name: String): Element {
}
abstract class TagWithText(name: String): Tag(name) {
fun String.plus() {}
operator fun String.unaryPlus() {}
}
class HTML(): TagWithText("html") {
@@ -42,7 +42,7 @@ val fail: Nothing get() = throw Exception()
Resolved call:
Resulting descriptor: fun String.plus(): Unit defined in Title
Resulting descriptor: fun String.unaryPlus(): Unit defined in Title
Explicit receiver kind = EXTENSION_RECEIVER
Dispatch receiver = TitleExt{fun Title.<anonymous>(): Unit defined in result.<anonymous>.<anonymous>}