Tests for KT-1888

#KT-1888 fixed
This commit is contained in:
Nikolay Krasko
2012-05-04 14:24:34 +04:00
parent f02559afc7
commit 652b9e78c3
5 changed files with 40 additions and 0 deletions
@@ -0,0 +1,7 @@
trait A {
fun String.foo()
}
class B : A {
<caret>
}
@@ -0,0 +1,10 @@
trait A {
fun String.foo()
}
class B : A {
override fun String.foo() {
throw UnsupportedOperationException()
}
}
@@ -0,0 +1,7 @@
trait A {
val String.prop : Int
}
class B : A {
<caret>
}
@@ -0,0 +1,8 @@
trait A {
val String.prop : Int
}
class B : A {
override val String.prop : Int = 0
}