Files
kotlin-fork/compiler/testData/diagnostics/tests/scopes/kt1248.jet
T
Svetlana Isakova 2577683ce8 tests for:
#KT-1248 Fixed Control visibility of overrides needed
#KT-37 Fixed Typechecker doesn't complain about accessing non-public property
2012-04-04 14:36:57 +04:00

13 lines
350 B
Plaintext

//KT-1248 Control visibility of overrides needed
package kt1248
trait ParseResult<out T> {
public val success : Boolean
public val value : T
}
class Success<T>(<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>internal<!> override val value : T) : ParseResult<T> {
<!CANNOT_WEAKEN_ACCESS_PRIVILEGE!>internal<!> override val success : Boolean = true
}