Tests for fixed issues
#KT-1736 fixed #KT-1244 fixed #KT-1738 fixed
This commit is contained in:
@@ -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++
|
||||
}
|
||||
Reference in New Issue
Block a user