Tests for fixed issues

#KT-1736 fixed
 #KT-1244 fixed
 #KT-1738 fixed
This commit is contained in:
Svetlana Isakova
2012-05-04 20:47:17 +04:00
parent 22e9e7de10
commit 765d851b1a
3 changed files with 34 additions and 0 deletions
@@ -0,0 +1,10 @@
//KT-1736 AssertionError in CallResolver
package kt1736
object Obj {
fun method() {
}
}
val x = Obj.method<!TOO_MANY_ARGUMENTS, DANGLING_FUNCTION_LITERAL_ARGUMENT_SUSPECTED!>{ -> }<!>
@@ -0,0 +1,13 @@
//KT-1244 Frontend allows access to private members of other classes
package kt1244
class A {
private var a = ""
}
class B() {
{
A().<!INVISIBLE_MEMBER!>a<!> = "Hello"
}
}
@@ -0,0 +1,11 @@
//KT-1738 Make it possible to define visibility for constructor parameters which become properties
package kt1738
class A(private var i: Int, var j: Int) {
}
fun test(a: A) {
a.<!INVISIBLE_MEMBER!>i<!>++
a.j++
}