Files
kotlin-fork/compiler/testData/diagnostics/tests/regressions/kt575.jet
T
Stepan Koltsov 07ff53d456 add trailing newlines to test files
otherwise I have to rollback dozens of files after using sed that follows conventions
2012-03-12 22:54:14 +04:00

33 lines
418 B
Plaintext

// KT-575 Cannot ++ a class object member
package kt575
class Creature() {
class object {
var numCreated : Int = 0
private set
}
object A {
var bbb : Int
{
$bbb = 1
}
}
class C() {
var ccc : Int
{
$ccc = 2
}
}
{
Creature.numCreated++ // Error
A.bbb++
C().ccc++
}
}