Visibility can be private: do not perform too expensive search

Also, additional test for usage via accessor was added
So #KT-18617 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-06-23 16:22:11 +03:00
parent 3358f0ab69
commit c99db11ace
4 changed files with 54 additions and 6 deletions
@@ -0,0 +1,8 @@
// "Add 'private' modifier" "false"
// ACTION: Convert to secondary constructor
// ACTION: Create test
// ACTION: Move to class body
class My(val <caret>parameter: Int) {
val other = parameter
}
@@ -0,0 +1,5 @@
public class User {
public static int foo(My my) {
return my.getParameter();
}
}