KT-1018: better handling of property visibility

This commit is contained in:
Alex Tkachman
2012-01-20 14:21:38 +01:00
parent b4b1ec1bb5
commit 35a1240dc7
7 changed files with 84 additions and 44 deletions
@@ -0,0 +1,12 @@
public class StockMarketTableModel() {
public fun getColumnCount() : Int {
return COLUMN_TITLES?.size.sure()
}
class object {
private val COLUMN_TITLES : Array<Int?> = Array<Int?>(10)
}
}
fun box() : String = if(StockMarketTableModel().getColumnCount()==10) "OK" else "fail"
@@ -8,7 +8,7 @@ trait M {
}
class N() : M {
override var backingB : Int = 0
public override var backingB : Int = 0
val a : Int
get() {